syntax:functions:floor
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
syntax:functions:floor [2019/09/26 11:27] – dmitry | syntax:functions:floor [2021/08/11 15:17] (current) – [Examples] craigt | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Floor(number) ===== | + | ====== Floor(number) ====== |
+ | Category: | ||
- | Nearest | + | \\ |
+ | =====Description===== | ||
+ | This function rounds //number// down to the nearest | ||
- | ^ | + | \\ |
- | | | + | =====Arguments===== |
- | | floor( 10.99 ) | 10 | | + | ^Argument^Type^Description^ |
+ | |number|Number|The value, usually fractional, to be rounded.| | ||
+ | \\ | ||
+ | **Return value type: | ||
- | === See also === | + | \\ |
- | * [[syntax: | + | =====Remarks===== |
+ | If the argument provided has //any// decimal portion, the whole number will be rounded down (towards negative infinity) to the next nearest whole number. | ||
+ | |||
+ | \\ | ||
+ | =====Examples===== | ||
+ | |||
+ | floor(10.0001) //Returns 10 | ||
+ | |||
+ | floor(10.5) //Returns 10 | ||
+ | |||
+ | floor(10.9999) //Returns 10 | ||
+ | |||
+ | floor(-10.0001) //Returns -11 (Rounded down towards negative infinity) | ||
+ | |||
+ | floor(-10.5) //Returns -11 (Rounded down towards negative infinity) | ||
+ | |||
+ | floor(-10.9999) //Returns -11 (Rounded down towards negative infinity) | ||
+ | |||
+ | \\ | ||
+ | ===== See also ===== | ||
+ | * [[syntax: | ||
+ | * [[syntax: | ||
- | Note: keep in mind that EasyMorph doesn' |
syntax/functions/floor.1569511624.txt.gz · Last modified: 2019/09/26 11:27 by dmitry