Integer overflow: Difference between revisions

Content deleted Content added
Origin: Maximum representable numbers for 32- and 64-bit were incorrectly halved, which would only be true if we were assuming signed values (which that paragraph is not).
Line 9:
: 8 bits: maximum representable value 2<sup>8</sup> − 1 = 255
: 16 bits: maximum representable value 2<sup>16</sup> − 1 = 65,535
: 32 bits: maximum representable value 2<sup>3132</sup> − 1 = 24,147294,483967,647295 (the most common width for personal computers {{As of|2005|lc=on}}),
: 64 bits: maximum representable value 2<sup>6364</sup> − 1 = 918,223446,372744,036073,854709,775551,807615 (the most common width for personal computers, but not necessarily their [[operating system]]s, {{As of|2012|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