Loading

ADDEXACT


math
Since v1.2.23
Available on all platforms
See also

The ADDEXACT function consumes two LONGs from the top of the stack and puts back the sum. If the sum overflows a LONG, this function fails.

Since 2.6.0, this function can be applied to a list of numeric values.

Signature

Examples

-9 51 ADDEXACT <% MAXLONG 42 ADDEXACT %> <% ERROR 0 GET 'message' GET %> <% %> TRY <% MAXLONG -1 * -42 ADDEXACT %> <% ERROR 0 GET 'message' GET %> <% %> TRY