Skip to main content
Multiplies two numerical inputs and returns the product as a float.

Validation

Both inputs must be numerical (integer or float). Values are matched per dated property by valid_from and id. Any non-numerical input raises an error.

Nil handling

A nil value on either side is treated as one (the multiplicative identity), so passing nil leaves the other operand unchanged.

List behaviour

When the value of a dated property on x is a list, the matching value on y must be either a single number or a list of the same length. Same-length lists are multiplied element-wise; a single number is multiplied into every element. Any other shape raises an error.

Ports