3. Arithmetic Functions
Arithmetic functions are used for general numerical calculations.
| Name | Explanation |
|---|---|
| abs | Find the absolute value of a number |
| and | Calculate the logical product Added since Version 5.0.1 Cannot be used with Mobile & AI version |
| int | Truncate the digits after the decimal point of a floating point number |
| or | Find the logical sum Added since Version 5.0.1 Cannot be used with Mobile & AI version |
| rand | Returns a random number in the range 0 to 1 |
| round | Round to the specified digit Added since Version 2.0.0 |
| rounddown | Truncate at the specified digit Added since Version 2.0.0 |
| roundup | Round up to any digit Added since Version 2.0.0 |
| roundm | Makes the original value a multiple of the specified value Added since Version 2.0.0 |
| sign | Determine the sign of a number |
| xor | Find the exclusive OR Added since Version 5.0.1 Cannot be used with Mobile & AI version |
Note that the decimal point operation is a floating point operation internally, so there is a rounding error.