The round() function returns the closest integer to the numeric value of the argument, as an instance of the same primitive data type as the argument. For example, the expression «round(4.6) » returns the xs:decimal value 5.0 .
Argument | Data Type | Meaning |
---|---|---|
value | Numeric | The input value |
Result | Numeric | The result of rounding the first argument to the nearest integer, but expressed as a value of the same data type as the input value |