saturating_sub()
The saturating_sub function subtracts the second number from the first, saturating at -2147483648 and 2147483647 instead of overflowing.
For more information about saturating math functions, see the saturating math docs.
Required arguments
| Name | Type | Description |
|---|---|---|
x |
INT |
An integer for y to subtract from |
y |
INT |
An integer to subtract from x |
Returns
| Column | Type | Description |
|---|---|---|
saturating_sub |
INT |
The result of x-y, saturating at the numeric bounds instead of overflowing |
