💾 Archived View for rawtext.club › ~s0kx › pure-sh-bible › arithmetic-operators.gmi captured on 2022-03-01 at 15:18:19. 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))