{ Frameless }

number($arg)

The number() or number($arg) function returns the value indicated by $arg. If there is no argument specified, the context item will be used after atomisation. The value is converted to an xs:double.

Arguments

ArgumentType
$argxs:anyAtomicType
Return valuexs:double

N.B

If the $arg is the empty sequence of if the argument cannot be converted to xs:double, the value NaN is returned.