mul_wrapping

a × b on Int64, wrapping on overflow.

ScalarDeterministic

Flags

Flag Value
Kind scalar
Nulls a null argument gives null
Deterministic yes
Order matters no
Decomposable no

Example

A pipeline from the language's tested corpus that uses mul_wrapping, over the example tables.

Hint
from orders
derive {w = add_wrapping(qty, 9223372036854775807), s = sub_wrapping(qty, 1), m = mul_wrapping(qty, qty)}

In a plan:

JSON
{
  "args": [
    {
      "col": 3
    },
    {
      "col": 3
    }
  ],
  "fn": "mul_wrapping"
}