Integer overflow: Difference between revisions

Content deleted Content added
added two languages, which automatically convert to arbitrary precision integers. Although probably no longer popular these, days, it should be mentioned, that there indeed are languages which completely avoid errors due to limited int range.
year+=3 (resisted temptation to add [citation-needed])
Line 10:
: 16 bits: maximum representable value 2<sup>16</sup> − 1 = 65,535
: 32 bits: maximum representable value 2<sup>32</sup> − 1 = 4,294,967,295 (the most common width for personal computers {{As of|2005|lc=on}}),
: 64 bits: maximum representable value 2<sup>64</sup> − 1 = 18,446,744,073,709,551,615 (the most common width for personal computers, but not necessarily their [[operating system]]s, {{As of|20122015|lc=on}}),
: 128 bits: maximum representable value 2<sup>128</sup> − 1 = 340,282,366,920,938,463,463,374,607,431,768,211,455