> ## Documentation Index
> Fetch the complete documentation index at: https://docs.metrics-man.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Multiply

# \$multiply

The `$multiply` operator multiplies two numeric values.

## Input

* An array containing exactly two numeric values to multiply

## Output

* The product of the two input values

## Examples

### Basic Multiplication

```json theme={null}
{
  "$multiply": [
    4,
    5
  ]
}
```

Result: `20`

### Field Value Multiplication

```json theme={null}
{
  "$multiply": [
    {
      "$input": "quantity"
    },
    {
      "$input": "unit_price"
    }
  ]
}
```

Result: The product of quantity and unit\_price fields

### Decimal Multiplication

```json theme={null}
{
  "$multiply": [
    2.5,
    4.0
  ]
}
```

Result: `10.0`
