MarkLogic 9 Product Documentation
fn functions (Numeric)

The numeric built-in functions are XQuery functions defined to operate on numeric values. They are defined in XQuery 1.0 and XPath 2.0 Functions and Operators.

5 functions
Function name Description
fn.abs Returns the absolute value of $arg.
fn.ceiling Returns the smallest (closest to negative infinity) number with no fractional part that is not less than the value of $arg.
fn.floor Returns the largest (closest to positive infinity) number with no fractional part that is not greater than the value of $arg.
fn.round Returns the number with no fractional part that is closest to the argument.
fn.roundHalfToEven The value returned is the nearest (that is, numerically closest) numeric to $arg that is a multiple of ten to the power of minus $precision.
Powered by MarkLogic Server | Terms of Use | Privacy Policy