op:float-multiply

Multiplies $float-var1 by $float-var2. The * operator invokes the float-multiply operator.

Signatures

op:float-multiply(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 32 bit floating point value of multiplying $float-var1 by $float-var2.

Examples

Simple

Invoking float-multiply("2.0","3.0") returns the floating point value: 6.0 as shown in the following example query:

<float-multiply>{op:float-multiply("2.0","3.0")}</float-multiply> 

The preceding query generates the following result:

<float-multiply>6.0</float-multiply> 

Related Topics

W3C float data type description.

W3C numeric-multiply operator description.