Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The INTADD function returns the sum of two integer values.
Syntax
INTADD(<numeric_expr_1>, <numeric_expr_2>)
Arguments
| Description | |
|---|---|
numeric_expr_1 |
The first numeric expression. |
numeric_expr_2 |
The second numeric expression. |
Return types
Returns a numeric expression.
Examples
This section contains examples of how to use this query language construct.
Add integer values
In this example, the INTADD function is used to add two numbers.
SELECT VALUE {
addNumber: INTADD(20, 10),
addZero: INTADD(20, 0),
addDecimal: INTADD(20, 0.10)
}
[
{
"addNumber": 30,
"addZero": 20
}
]