Content deleted Content added
→Origin: Use proper minus signs. |
→Origin: Cleaned up maximum representable value list |
||
Line 6:
The [[register width]] of a processor determines the range of values that can be represented. Typical [[Binary numeral system|binary]] register widths include:
: 8 bits:
: 16 bits:
: 32 bits
: 64 bits:
: 128 bits:
Since an arithmetic operation may produce a result larger than the maximum representable value, a potential error condition may result. In the [[C (programming language)|C programming language]], signed integer overflow causes [[undefined behavior]], while unsigned integer overflow causes the number to be reduced [[modular arithmetic|modulo a power of two]], meaning that unsigned integers "wrap around" on overflow.
|