Content deleted Content added
added carry (arithmetic) in See also |
→Explicit propagation: needs a source that any processor has a special value for integer overflow, rather than floating-point overflow (which is in any case Inf, not NaN) |
||
Line 99:
Handling possible overflow of a calculation may sometimes present a choice between performing a check ''before'' a calculation (to determine whether or not overflow is going to occur), or ''after'' it (to consider whether or not it likely occurred based on the resulting value). Since some implementations might generate a [[interrupt|trap]] condition on integer overflow, the most portable programs test in advance of performing the operation that might overflow.
===Programming language support===
|