Functions and Operators on Numerics
The following functions and operators are defined on the numeric datatypes defined in XML Schema Part 2: Datatypes Second Edition.
Operators on Numeric Values
1. op:numeric-add
op:numeric-add($arg1 as numeric, $arg2 as numeric) as numeric
2. op:numeric-subtract
op:numeric-subtract($arg1 as numeric, $arg2 as numeric) as numeric
3. op:numeric-multiply
op:numeric-multiply($arg1 as numeric, $arg2 as numeric) as numeric
4. op:numeric-divide
op:numeric-divide($arg1 as numeric, $arg2 as numeric) as numeric
Comparison Operators on Numeric Values
1. op:numeric-equal
op:numeric-equal($arg1 as numeric, $arg2 as numeric) as xs:boolean
2. op:numeric-less-than
op:numeric-less-than($arg1 as numeric, $arg2 as numeric) as xs:boolean
3. op:numeric-greater-than
op:numeric-greater-than($arg1 as numeric, $arg2 as numeric) as xs:boolean