Name
ceiling( )
Synopsis
number
ceiling(number x
)
The ceiling( )
function returns the smallest integer greater-than
or equal to x
. For example,
ceiling(3.141592)
is 4.
ceiling(-3.141592)
is -3. Before
the ceiling is calculated, nonnumber types are converted to
numbers as if by the number( )
function.
Get XML in a Nutshell, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.