Multiply
Arithmetic
Pure
Generic
Multiply
A
0
Result
B
0
Description
Pure function returning the product of two numbers.
When to use
Use Multiply to scale a value by a factor, compute an area, or apply a fixed multiplier to a count. Both integer and decimal inputs are accepted — wire decimal values directly without converting first. For repeated multiplication by the same base, Power is more concise.
Pins
Input pins
| Pin | Type | Default | Notes |
|---|---|---|---|
| A | generic(integer, decimal) | 0 | The first factor. |
| B | generic(integer, decimal) | 0 | The second factor. |
Output pins
| Pin | Type | Notes |
|---|---|---|
| Result | generic(integer, decimal) | The product of a and b. |
Example
Compute the total price given a unit price and a quantity. Wire the unit price into the A input of Multiply and the quantity into the B input. The Result output is the total, which can be converted to a string via Integer to string or Decimal to string and logged or sent in a downstream request.