# op:float-subtract

Subtracts $float-var2 from $float-var1. The - operator invokes the float-subtract operator.

### Signatures

op:float-subtract(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 floating point value of subtracting $float-var2 from $float-var1.

### Examples

#### Simple

Invoking float-subtract("2.2","1.1") returns the floating point value: 1.1 as shown in the following example query:

    <float-subtract>{op:float-subtract("2.2","1.1")}</float-subtract>

The preceding query generates the following result:

    <float-subtract>1.1</float-subtract>

Related Topics

W3C float data type description.

W3C numeric-subtract operator description.