Difference between revisions of "NXSL:floor"
Jump to navigation
Jump to search
Line 12: | Line 12: | ||
== Parameters == | == Parameters == | ||
:{| | :{| class="wikitable" | ||
|- | |- | ||
| ''x'' || Floating point value. | | ''x'' || Floating point value. |
Revision as of 13:18, 22 November 2017
Round down value.
Since: 1.2.5
Syntax
floor(x);
Parameters
x Floating point value.
Return Value
The largest integral value not greater than x.
Examples
floor(2.3) -> 2 floor(3.8) -> 3 floor(-2.3) -> -3 floor(-3.8) -> -4