Integer overflow
Integer overflow happens when a decimal number is larger than a binary number can represent. For example 255 is represented by eight ones. If a larger number than 255 needs to be represented, then more binary places are needed. If a decimal number will is larger than a binary number can support, than value of a decimal number higher than a binary number can support will be lost.
Where does it happen in practice?
32 bit systems had a limitation of about 4 billion. 4 Gigabytes of operating memory was the highest number than can be addressed by these systems. Going over 4 Gigabytes required use of more than 32 bits. That is where 64 bit processor came in action. 64 bit processors can overcome the limit of 4 gigabytes of RAM and have a much larger number of it.
Comments
Post a Comment