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