+ - * /
div (integer division): //
mod: \
power: ^
root: ^/
round-to: ~ (default: 1)
all also work in-place

Addition:
A+B
Subtraction:
A-B
Multiplication:
A*B
Division:
A/B
Integer Division:
A//B -- equals (A-A\B)/B
Modulo:
A\B -- equals A-(A//B)*B
Power:
A^B
Root:
A^/B
Round-to:
A~B
All of them can be used as
in-place operations,
where A becomes modified by B.
The line
v v+2
can thus also be written as
v+2
for brevity.
The rounding operator ~
can be used without a right-hand value,
rounding to 1 by default:
3.3~+5.8~ = 3+6
Pay attention to where you place
spaces next to a minus dash!
value assignment: a -2 = a (-2) in-place modification: a- 2 = a - 2 = a-2 = a a-2 negative in vectors: (a -b c) = (a (-b) c) subtraction in vectors: (a- b c) = (a - b c) = (a-b c) = ((a-b) c)

Eas:

a+b a-b a*b a/b a\b a//b a^b a^/b a~b

PHP:

$a+=$b; $a-=$b; $a*=$b; $a/=$b; $a%=$b; $a=intdiv($a,$b); $a=$a**$b; $a=$a**(1/$b); $a=$b?round($a/$b)*$b:0;

Esc __Search / Table of Contents__