math:fabs

math:fabs(
   $x as xs:double
) as xs:double

Summary

Returns the absolute value of x.

Parameters
x The floating point number to be evaluated.

Example

  math:fabs(4.013)

  => 4.013
Powered by MarkLogic Server | Terms of Use | Privacy Policy