Name

floor( )

Synopsis

                     number floor(number x)

The floor( ) function returns the greatest integer less-than or equal to x. For example, floor(3.141592) is 3. floor(-3.141592)is -4. Before the floor of a non-number type is calculated, it is converted to a number 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.