saturating_add()
The saturating_add
function adds two numbers, 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 to add to y |
y | INT | An integer to add to x |
Returns
Column | Type | Description |
---|---|---|
saturating_add | INT | The 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. |
当前内容版权归 TimescaleDB 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 TimescaleDB .