.. _abs: === abs === The absolute value Description ~~~~~~~~~~~ The fn:abs function accepts any numeric value and returns its absolute value. The result type depends the numeric type of the argument. If $arg is untyped, it is cast to xs:double. .. list-table:: :widths: 40 60 :header-rows: 1 * - **Parameters** - **Description** * - arg:numeric() - Examples ~~~~~~~~ .. list-table:: :widths: 50 50 :header-rows: 1 * - **XPath** - **Results** * - abs(3.5) - 3.5 * - abs(-4) - 4 * - abs(xs:float('-INF')) - INF