rounddown
mathExplicitly rounds down to the nearest integer
Syntax
rounddown(number) Parameters
number (number) The number to round down
Returns
number The number rounded down to the nearest integer
Examples
Input:
3.9 | rounddown Output:
3 Input:
rounddown(7.1) Output:
7 Input:
rounddown(5.0) Output:
5 The rounddown() function explicitly rounds down to the nearest integer.
Usage
Use rounddown() when you need to ensure values are always rounded downward, similar to floor().