CEIL

n = CEIL (x)

Smallest integer value not less than x.

For smallest integer value less then x see FLOOR.

Example

print "ceil(1.1)  = "; ceil(1.1)
print "ceil(1.5)  = "; ceil(1.5)
print "ceil(1.9)  = "; ceil(1.9)
print "ceil(-1.1) = "; ceil(-1.1)
print "ceil(-1.5) = "; ceil(-1.5)
print "ceil(-1.9) = "; ceil(-1.9)

' Output:
' ceil(1.1)  = 2
' ceil(1.5)  = 2
' ceil(1.9)  = 2
' ceil(-1.1) = -1
' ceil(-1.5) = -1
' ceil(-1.9) = -1
Code samples using CEIL
Math
If there is insufficient information on this page and you wish learn more about CEIL, please send an email to smallbasic@gmail.com. You can help to improve information about CEIL by submitting a pull request, click View Source for details. Note, an offline language reference text file is also available - see the Download section.