Operator | Description | Mode
|
---|
^ | Exponential Power | Only works while in Operator Mode: Math*
|
! | Factorial
|
@ | converts base10 to base2-36, (5@2=101)
|
# | converts base2-36 to base10 (AB#16=171)
|
° | converts degree to radian (180°=pi)
|
°° | converts radian to degree (2*pi°°=360)
|
^^ | Bitwise XOR
|
!! | Logical NOT
|
^ | Bitwise XOR | Only works while in Operator Mode: JavaScript*
|
! | Logical NOT
|
+, -, *, / | Add, Subtract, Multiply, Dived | Works in both modes
|
% | Modulus, returns integer remainder from division
|
~, &, | | Bitwise NOT, AND, OR
|
<<, >>, >>> | Bitwise left shift, right shift, zero-fill right shift
|
&&, || | Logical AND, OR
|
++, -- | Incremnet, Decrement
|
?: | if-else (boolean?true:false)
|
*if in JavaScript mode, you must call the functions to use Math Only Mode Operators
Method | Description
|
---|
abs(n) | Absolute value
|
sin(n), cos(n), tan(n) | Standard trigonometric functions; argument in radians
|
acos(n), asin(n), atan(n) | Inverse trigonometric functions; return values in radians
|
exp(n), log(n) | Exponential and natural logarithm, base e
|
ceil(n) | Returns least integer greater than or equal to argumen
|
floor(n) | Returns greatest integer less than or equal to argument
|
min(n,...), max(n,...) | Returns greater or lesser (respectively) of two arguments
|
pow(base,n) | Exponential; first argument is base, second is exponent
|
round(n) | Rounds argument to nearest integer
|
sqrt(n) | Square root
|
random() | a random number between 0 <= n < 1
|