JM°-Classic / Einstieg / Mathematical functions
Mathematical functions
Als "mathematische Funktionen" werden alle Nicht-Alphanumerischen-Funktionen (wie z.B. ".add") bezeichnet.
Calculation
| Operator | Function |
|---|---|
| + | Addition |
| - | Subtraction |
| * | Multiplication |
| / | Division |
| % | Modulo (division remainder) |
| /~ | Division to integer (decimal places are discarded). |
| ++ | Increment |
| -- | Decrement |
| ** | Power |
| // | Root |
| | | Bitwise Or |
| & | Bitwise And |
| ^ | Bitwise Xor |
| << | Bitwise shift to the left |
| >> | Bitwise shift to the right |
Compare
| Operator | Function | Negation |
|---|---|---|
| == | is equal to | != or <> |
| === | is the same | !== |
| ==~ | Corresponds to, is similar to | !=~ |
| < | Is smaller than | |
| <= | Is less than or equal to | |
| >= | Is greater than or equal to | |
| > | Is greater than |
Logical operators
| Operator | Function | Logic gate |
|---|---|---|
| || | Or | OR |
| !|| | Not-or | NOR |
| && | And | AND |
| !&& | Not-And | NAND |
| ^^ | Xor | XOR |
| !^^ | Non-Xor | XNOR |
| ! | Not | NOT |
Calculating with variables
- Powered by
OghsWiki
-