Functions | |
NUMBER | math.minmax (NUMBER x, NUMBER min, NUMBER max) |
Keeps a number between two limits. More... | |
NUMBER | math.bitnot (NUMBER Bit) |
Performs a bit logical negation (the 1 is converted to 0, and vice versa). More... | |
NUMBER | math.bitand (NUMBER one, NUMBER two) |
Performs a logic AND operation on each bit pair. More... | |
NUMBER | math.bitor (NUMBER one, NUMBER two) |
Performs a logic OR operation on each bit pair. More... | |
Math functions
NUMBER math.minmax | ( | NUMBER | x, |
NUMBER | min, | ||
NUMBER | max | ||
) |
Keeps a number between two limits.
x | The number to evaluate. |
min | Lower limit. |
max | Upper limit. |
NUMBER math.bitnot | ( | NUMBER | Bit | ) |
Performs a bit logical negation (the 1 is converted to 0, and vice versa).
Bit | The number to process. |
NUMBER math.bitand | ( | NUMBER | one, |
NUMBER | two | ||
) |
Performs a logic AND operation on each bit pair.
one | First number to process. |
two | Second number to process. |
NUMBER math.bitor | ( | NUMBER | one, |
NUMBER | two | ||
) |
Performs a logic OR operation on each bit pair.
one | First number to process. |
two | Second number to process. |