Truncates a decimal number, making it an integer.
$truncate(number)
| number | a number, or an expression that evaluates to a number |
Number, with no decimal places.
$truncate(2.49)
Evaluates to 2.
$truncate(2.99)
Evaluates to 2.
int1 - $truncate(int1/int2) * int2
Performs int1 modulo int2. Can also be expressed as $modulus(int1,int2).