FACTOID # 171: Want to go to the United States? Try going to Albania first. Albania has more U.S visa lottery winners per capita than anywhere else in the world.
 
 Home   Encyclopedia   Statistics   Countries A-Z   Flags   Maps   Education   Forum   FAQ   About 
 
WHAT'S NEW
RECENT ARTICLES
More Recent Articles »
 

SEARCH ALL

FACTS & STATISTICS    Advanced view

Search encyclopedia, statistics and forums:

 

 

(* = Graphable)

 

 


Encyclopedia > Arithmetic overflow

The term arithmetic overflow or simply overflow has the following meanings.

  1. In a digital computer, the condition that occurs when a calculation produces a result that is greater than what a given register or storage location can store or represent.
  2. In a digital computer, the amount by which a calculated value is greater than that which a given register or storage location can store or represent. Note that the overflow may be placed at another location.

Most computers distinguish between two kinds of overflow condition. A carry occurs when the result of an addition or subtraction has the correct sign but the wrong value. This can happen when adding numbers that are interpreted as unsigned values. An overflow proper occurs when the result does not have the sign that one would predict from the signs of the operands (e.g. a negative result when adding two positive numbers). This can occur when adding numbers in two's complement representation. ... In computer architecture, a processor register is a small amount of very fast computer memory used to speed the execution of computer programs by providing quick access to commonly used values—typically, the values being in the midst of a calculation at a given point in time. ... To meet Wikipedias quality standards, this article or section may require cleanup. ... Twos complement is the most popular method of signifying negative integers in computer science. ...


There are several methods of handling overflow:

  1. Avoidance: by carefully ordering operations and checking operands in advance, it is possible to ensure that the result will never be larger than can be stored.
  2. Handling: If it is anticipated that overflow may occur and when it happens detected and other processing done. Example: it is possible to add two numbers each two bytes wide using just a byte addition in steps: first add the low bytes then add the high bytes, but if it is necessary to carry out of the low bytes this is arithmetic overflow of the byte addition and it necessary to detect and increment the sum of the high bytes. CPUs generally have a way of detecting this to support addition of numbers larger than their register size, typically using a status bit.
  3. Propagation: if a value is too large to be stored it can be assigned a special value indicating that overflow has occurred and then have all successive operation return this flag value. This is useful so that the problem can be checked for once at the end of a long calculation rather than after each step. This is often supported in Floating Point Hardware called FPUs.
  4. Ignoring: This is the most common approach, but it gives incorrect results and can compromise a program's security.

Division by zero is not a form of arithmetic overflow. Mathematically division by zero is explicitly undefined; it is not that the value is too large but rather that it has no value. Intel 80486DX2 microprocessor in a ceramic PGA package A central processing unit (CPU), or sometimes simply processor, is the component in a digital computer that interprets instructions and processes data contained in software. ... A floating point unit (FPU) is a part of a CPU specially designed to carry out operations on floating point numbers. ... Computer security is the effort to create a secure computing platform, designed so that agents (users or programs) cannot perform actions that they are not allowed to perform, but can perform the actions that they are allowed to. ... In mathematics, a division is called a division by zero if the divisor is zero. ... In mathematics, defined and undefined are used to explain whether or not expressions have meaningful, sensible output. ...


Sources: Federal Standard 1037C and MIL-STD-188 (reference works treating telecommunication) Federal Standard 1037C entitled Telecommunications: Glossary of Telecommunication Terms is a U.S. Federal Standard, issued by the General Services Administration pursuant to the Federal Property and Administrative Services Act of 1949, as amended. ... MIL-STD-188 is a series of U.S. military standards relating to telecommunications. ... BlackBerry 7100t Telecommunication refers to the communication of information at a distance. ...


  Results from FactBites:
 
Arithmetic overflow - Wikipedia, the free encyclopedia (387 words)
Note that the overflow may be placed at another location.
An overflow proper occurs when the result does not have the sign that one would predict from the signs of the operands (e.g.
Division by zero is not a form of arithmetic overflow.
Overflow - Wikipedia, the free encyclopedia (281 words)
In general usage, an overflow occurs when the volume of a substance exceeds the capacity of its intended container.
In computing, the term overflow often refers to an arithmetic overflow.
In plumbing, a toilet or sink may overflow, spilling water onto the surrounding area.
  More results at FactBites »


 

COMMENTARY     


Share your thoughts, questions and commentary here
Your name
Your comments
Please enter the 5-letter protection code

Want to know more?
Search encyclopedia, statistics and forums:

 


Lesson Plans | Student Area | Student FAQ | Reviews | Press Releases |  Feeds | Contact
The Wikipedia article included on this page is licensed under the GFDL.
Images may be subject to relevant owners' copyright.
All other elements are (c) copyright NationMaster.com 2003-5. All Rights Reserved.
Usage implies agreement with terms.