October 2001
Beginner to intermediate
400 pages
7h 45m
English
Numerical operators return a new value from the supplied elements.
! Factorial !! Factorial (left operator) % Mod or truncate * Multiplication + Addition - Subtraction / Division : Exponentiation @ Absolute value ^ Exponentiation | Square root ||/ Cube root & Binary AND | Binary OR # Binary XOR ~ Binary NOT << Binary shift left >> Binary shift right
Here are some examples of numerical operators in action:
| Operator | Supplied Values | Result |
|---|---|---|
| Addition | 5+5 | 10 |
| Square root | |/81 | 9 |
| Absolute value | @-8 | 8 |
| Cube root | | |/343 | 7 |
| Factorial | 3! | 6 |
| Left factorial | !3 | 6 |
| Binary AND | 1&5 | 1 |
| Binary XOR | 1#5 | 4 |
| Binary left shift | 1<<4 | 16 |
The binary operators also function on BIT and BITVARYING d ...
Read now
Unlock full access