
MarkLogic 12 Product Documentation
math:fabsmath: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
    Copyright © 2025 MarkLogic Corporation. MARKLOGIC is a
    registered trademark of MarkLogic Corporation.