syntax:functions:ceiling
                Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| syntax:functions:ceiling [2016/06/20 11:43] – dmitry | syntax:functions:ceiling [2021/08/11 15:15] (current) – [Examples] craigt | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ===== Ceiling(number) ===== | + | ====== Ceiling(number) ====== | 
| + | Category: | ||
| - | Nearest | + | \\ | 
| + | =====Description===== | ||
| + | This function rounds //number// up to the nearest | ||
| - | ^ | + | \\ | 
| - | | ceiling( 0 - 20.5) | + | =====Arguments===== | 
| - | | ceiling( 20.5 ) | + | ^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 up (towards positive infinity) to the next nearest whole number. | ||
| - | Note: keep in mind that EasyMorph doesn' | + | \\ | 
| + | =====Examples===== | ||
| + | |||
| + | ceiling(20.0001) //Returns 21 | ||
| + | |||
| + | ceiling(20.5) //Returns 21 | ||
| + | |||
| + | ceiling(20.9999) //Returns 21 | ||
| + | |||
| + | ceiling(-20.0001) //Returns -20 (Rounded up towards positive infinity) | ||
| + | |||
| + | ceiling(-20.5) //Returns -20 (Rounded up towards positive infinity) | ||
| + | |||
| + | ceiling(-20.9999) //Returns -20 (Rounded up towards positive infinity) | ||
| + | |||
| + | \\ | ||
| + | ===== See also ===== | ||
| + | * [[syntax: | ||
| + | * [[syntax: | ||
syntax/functions/ceiling.1466437412.txt.gz · Last modified:  by dmitry
                
                