fn:round

fn:round(numeric? $srcval) → numeric?

Function signature

$srcval

numeric ?

Result

numeric ?

Rounds a numeric value to the nearest whole number, rounding x.5 towards positive infinity.

XPath 2.0 Specification

Implemented. Changed in 7.4 to return the same type as the supplied argument.


Expand

Up  Next