# op:float-add

Add $float-var1 to $float-var2. The + operator invokes the float-add operator.

### Signatures

op:float-add(xs:float $float-var1, xs:float $float-var2) —> xs:float

### Arguments

Data Type | Argument | Description
--- | --- | ---
xs:float | $float-var1 | Represents a 32 bit floating point number, for example: 1.1.
xs:float | $float-var2 | Represents a 32 bit floating point number, for example: 1.1.

### Returns

Returns the float value of adding $float-var1 to $float-var2.

### Examples

#### Simple

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>

Related Topics

W3C float data type description.

W3C numeric-add operator description.