Language Reference - System Workareas
SysOverflow |
|
---|---|
Status | Read/ Write |
Default | 1 |
Notes | Arithmetic errors (for example overflow, underflow, division by zero, conversion errors) can be controlled using the following values:
If overflow is allowed, the result for numbers with decimal places is zero, and for integer types is the bit pattern that can be stored in the item corresponding to a correct result. For example, subtracting 1 from an unsigned byte containing 0 produces 255, adding 257 to it produces 1, and adding 128 to a signed byte containing 0 produces -128. Values after ignored conversion errors are undefined where the number of bits required to contain the result is more than are available. |
See Also |