floor
Modified on Tue, 22 Aug 2023
Description
Round a number down to the nearest whole number
Syntax
floor(number)
Parameters
Input Parameter | Type | Description |
---|---|---|
number | number | The number to be rounded down |
Return value
Type |
---|
number |
Sample
Example | Result | Description |
---|---|---|
floor(15.7) | 15 | Returns the largest whole number that is less than or equal to the input number |
To view all the Math and Number functions, click here.
See Also
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article