# op:double-add

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

### Signatures

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

### Arguments

Data Type | Argument | Description
--- | --- | ---
xs:double | $double-var1 | Represents a double precision (64 bit) floating point number, for example: 1.1.
xs:double | $double-var2 | Represents a double precision (64 bit) floating point number, for example: 1.1.

### Returns

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

### Examples

#### Simple

Invoking double-add("1.0","2.0") returns the double precision floating point value: 3.0 as shown in the following example query:

    <double-add>{op:double-add("1.0","2.0")}</double-add>

The preceding query generates the following result:

    <double-add>3.0</double-add>

Related Topics

W3C double data type description.

W3C numeric-add operator description.