fn:abs

Return absolute value of an item.

Top of page

Related Syntax Constructs

The following construct(s) refer to this construct:


Syntax

fn:abs(item? $value) => double

Description

This function returns the absolute value of an item. The item must evaluate to a number.

Argument

$number

item?

Example

let $a := xs:double(17.5)
return abs($a)