# op:decimal-multiply

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

### Signatures

op:decimal-multiply(xs:decimal $decimal-var1, xs:decimal $decimal-var2) —> xs:decimal

### Arguments

Data Type | Argument | Description
--- | --- | ---
xs:decimal | $decimal-var1 | Represents a decimal number, for example: 1.1.
xs:decimal | $decimal-var2 | Represents a decimal number, for example: 1.1.

### Returns

Returns the decimal value of multiplying $decimal-var1 by $decimal-var2.

### Examples

#### Simple

Invoking decimal-multiply("2.0","1.0") returns the decimal value: 2 as shown in the following example query:

    <decimal-multiply>{op:decimal-multiply("2.0","1.0")}</decimal-multiply>

The preceding query generates the following result:

    <decimal-multiply>2</decimal-multiply>

Related Topics

W3C decimal data type description.

W3C numeric-multiply operator description.