Integer overflow: Difference between revisions

Content deleted Content added
Changing short description from "When representing an arithmetic result requires more digits than are available" to "Computer arithmetic error"
m fix linter errors (3x obsolete tt tags)
Line 59:
! Signed integer
|-
| [[Ada (programming language)|Ada]] || modulo the type's modulus || <ttsamp>'''raise''' Constraint_Error</ttsamp>
|-
| [[C (programming language)|C]], [[C++]] || modulo power of two || undefined behavior
Line 71:
| [[MATLAB]] || colspan="2" | Builtin integers saturate. Fixed-point integers configurable to wrap or saturate
|-
| [[Python (programming language)|Python]] 2 || {{N/A}} || convert to <ttvar>long</ttvar> type (bigint)
|-
| [[Seed7]] || {{N/A}} || <ttsamp>'''raise''' OVERFLOW_ERROR</ttsamp><ref>[http://seed7.sourceforge.net/manual/errors.htm#OVERFLOW_ERROR Seed7 manual], section 16.3.3 OVERFLOW_ERROR.</ref>
|-
| [[Scheme (programming language)|Scheme]] || {{N/A}} || convert to bigNum