💾 Archived View for rawtext.club › ~s0kx › pure-sh-bible › arithmetic-operators.gmi captured on 2022-07-16 at 14:41:44. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2021-12-03)

-=-=-=-=-=-=-

Arithmetic operators

Assignment

Initialize or change the value of a variable.

= 

Arithmetic

Addition

+

Subtraction

-

Multiplication


Division

/

Modulo

%

Plus-Equal (Increment a variable.)

+=

Minus-Equal (Decrement a variable.)

-=

Times-Equal (Multiply a variable.)


Slash-Equal (Divide a variable.)

/=

Mod-equal (Remainder of dividing a variable.)

%=

Bitwise

Bitwise left shift.

<<

Left-shift-equal.

<<=

Bitwise right shift.

>>

Right-shift-equal.

>>=

Bitwise AND

&

Bitwise AND-equal

&=

Bitwise OR

|

Bitwise OR-equal

|=

Bitwise NOT

~

Bitwise XOR

^

Bitwise XOR-equal

^=

Logical

NOT

!

AND

&&

OR

||

Miscellaneous

Comma separator

,

Example usage:

((a=1,b=2,c=3))