Description
The fn:floor function returns the largest integer that is not greater than $arg. The result type depends the numeric type of the argument. If $arg is untyped, it is cast to xs:double.
This description is © Copyright 2007, Priscilla Walmsley. It is excerpted from the book XQuery by Priscilla Walmsley, O'Reilly, 2007. For a complete explanation of this function, please refer to Appendix A of the book. Arguments and Return Type| Name | Type |
$arg |
numeric? |
| return value |
numeric? |
Examples| XQuery Example | Results |
|---|
floor(5) |
5 |
floor(5.1) |
5 |
floor(5.7) |
5 |
floor(-5.1) |
-6 |
floor(-5.7) |
-6 |
floor( () ) |
() |
See AlsoHistory |
Recommended Reading: 
|