floor
This function is used by Ignition's Expression language.
Description​
Returns the largest floating point value that is less than or equal to the argument and is equal to a mathematical integer.
Syntax​
floor(number)
Parameters​
Type | Parameter | Description |
---|---|---|
Float | number | The number to get the floor of. |
Results​
Float - The floor of the number provided.
Examples​
Code Snippet
floor(2.72) //returns 2.0