Integer overflow: Difference between revisions

Content deleted Content added
Added links + wrapping is commonly a problems when it generates +/- a large value
SmackBot (talk | contribs)
m Date the maintenance tags using AWB
Line 1:
{{mergeMerge|Arithmetic overflow|date=December 2006}}
 
In [[computer programming]], an '''integer overflow''' occurs when an [[arithmetic]] operation attempts to create a numeric value that is larger than can be represented within the available storage space. For instance, adding 1 to the largest value that can be represented. The most common result in these cases is for the least significant representable bits of the result to be stored (the result is said to ''wrap''). On some [[processor]]s the result [[saturation arithmetic|saturates]], that is once the maximum value is reached attempts to make it larger simply return the maximum result.