Add $float-var1 to $float-var2. The + operator invokes the float-add operator.
op:float-add(xs:float $float-var1, xs:float $float-var2) —> xs:float
Represents a 32 bit floating point number, for example: 1.1. |
||
Represents a 32 bit floating point number, for example: 1.1. |
Returns the float value of adding $float-var1 to $float-var2.
Invoking float-add("1.0","2.0") returns the floating point value: 3.0 as shown in the following example query:
<float-add>{op:float-add("1.0","2.0")}</float-add>
The preceding query generates the following result:
<float-add>3.0</float-add>
W3C float data type description.
W3C numeric-add operator description.