Core Library (29)
Basic Arithmetic (9)¶
| Short Description | Function |
|---|---|
| Addition of two values | + |
| Subtraction | − |
| Multiplication of two values | * |
| Floating-point division | / |
| Integer division | // |
| Negation | u− |
| Modulo | % |
| Remainder | %% |
| Raising to a power | ** |
Comparison Operators (9)¶
| Short Description | Function |
|---|---|
| General comparison | cmp |
| Equality | == |
| Inequality | != |
| Less than | < |
| Less than or equal to | <= |
| Greater than | > |
| Greater than or equal to | >= |
| Maximum of two values | max |
| Minimum of two values | min |
Logical operators (4)¶
| Short Description | Function |
|---|---|
| Logical and | && |
| Logical or | || |
| Logical xor | ˆˆ |
| Logical not | ! |
Kleene operators (three-way logic) (3)¶
| Short Description | Function |
|---|---|
| Kleene and | &&& |
| Kleene or | ||| |
| Kleene not | !!! |
Bitwise arithmetic (4)¶
| Short Description | Function |
|---|---|
| Bitwise and | & |
| Bitwise or | | |
| Bitwise xor | ˆ |
| Bitwise not | ~ |