Returns its operand with the sign unchanged: (+ $arg
).
op:numeric-unary-plus
( $arg
as xs:numeric
xs:numeric
General rules: see .
The returned value is equal to $arg
, and is an instance of
xs:integer
, xs:decimal
, xs:double
, or
xs:float
depending on the type of $arg
.
Because function conversion rules are applied in the normal way, the unary
+
operator can be used to force conversion of an untyped node to a
number: the result of +@price
is the same as xs:double(@price)
if the type of @price
is xs:untypedAtomic
.