Skip to main content
Early access The saturating_sub_pos function subtracts the second number from the first, saturating at 0 and 2,147,483,647 instead of overflowing.

Arguments

NameTypeDefaultRequiredDescription
xINT-An integer for y to subtract from
yINT-An integer to subtract from x

Returns

ColumnTypeDescription
saturating_sub_posINTThe result of x - y, saturating at 0 for the minimum bound