The floor() function returns the largest integer value that is less than or equal to the numeric value of the argument. The result has the same data type as the supplied value, for example if the supplied value is an xs:double then the result is returned as an xs:double .
For example, the expression «floor(11.3) » returns the decimal value 11 , while «floor(-11.3) » returns -12 .
Argument | Data Type | Meaning |
---|---|---|
value | Numeric | The supplied number |
Result | Numeric | The result of rounding down the supplied number to the integer below. The result has the same primitive data type as the supplied value |