Ceiling
Determines the closest integer that is greater than a specified floating point number.
Method Signature
Ceiling(number=[numeric])
Arguments
Argument
Type
Required
Description
Default
number
numeric
true
The number for which to find the ceiling value.
Examples
Ceiling of 1.1
ceiling( 1.1 );
Result: 2
Ceiling of 1
When ceiling an integer the result is equal to the value passed
ceiling( 1 );
Result: 1
Additional Examples
<bx:output>
1.2: #ceiling( 1.2 )# <!--- 1.2: 2 ---><br>
1.5: #ceiling( 1.5 )# <!--- 1.5: 2 ---><br>
1.7: #ceiling( 1.7 )# <!--- 1.7: 2 ---><br>
</bx:output>
Related
Last updated
Was this helpful?