Content deleted Content added
mNo edit summary |
Derek farn (talk | contribs) rv: 256 values include the value 0, so 255 is the maximum |
||
Line 6:
The [[register width]] of the processor determines the the range of values that can be represented. Typical [[Binary numeral system|binary]] register widths include:
: 8 bits (maximum representable value
: 16 bits (maximum representable value 65,
: 32 bits (the most common width for personal computers [[as of 2005]], maximum representable value 4,294,967,
: 64 bits (maximum representable value 18,446,744,073,709,551,
: 128 bits.
Since an arithmetic operation may produce a result larger than the maximum representable value, an potential error condition may result. In the [[C programming language]], for example, signed integer overflow causes [[undefined behavior]], although arithmetic on unsigned integers, however, is reduced [[modular arithmetic|modulo a power of two]], meaning that unsigned integers "wrap around" on overflow.
|