Skip to main content
Early access The saturating_mul function multiplies two numbers, saturating at -2,147,483,648 and 2,147,483,647 instead of overflowing.

Arguments

NameTypeDefaultRequiredDescription
xINT-An integer to multiply with y
yINT-An integer to multiply with x

Returns

ColumnTypeDescription
saturating_mulINTThe result of x * y, saturating at the numeric bounds instead of overflowing. The numeric bounds are the upper and lower bounds of the 32-bit signed integers