Skip to main content

abs

Function abs 

Source
pub fn abs<N: DomNavigator>(
    _context: &mut DynamicContext<'_, N>,
    args: Vec<XPathValue<N>>,
) -> Result<XPathValue<N>, XPathError>
Expand description

Implements fn:abs - returns the absolute value of the argument.

The function preserves the numeric type of the input.