Arithmetic precision

Arithmetic precision

The precision of a value describes the number of digits that are used to express that value. In a scientific setting this would be the total number of digits (sometimes called the significant figures or significant digits) or, less commonly, the number of fractional digits or decimal places (the number of digits following the point). This second definition is useful in financial and engineering applications where the number of digits in the fractional part has particular importance.

In both cases, the term precision can be used to describe the position at which an inexact result will be rounded. For example, in floating point arithmetic, a result is rounded to a given or fixed precision, which is the length of the resulting significand. In financial calculations, a number is often rounded to a given number of places (for example, to two places after the decimal separator for many world currencies).

As an illustration, the decimal quantity 12.345 can be expressed with various numbers of significant digits or decimal places. If insufficient precision is available then the number is rounded in some manner to fit the available precision. The following table shows the results for various total precisions and decimal places rounded to the nearest value using the round-to-even method.

 
Precision
Rounded to
significant digits
Rounded to
decimal places
Five 12.345 12.34500
Four 12.34 12.3450
Three 12.3 12.345
Two 12 12.34
One 1 × 101 12.3
Zero n/a 12

Note that it is often not appropriate to display a figure with more digits than that which can be measured. For instance, if a device measures to the nearest gram and gives a reading of 12.345 kg, it would create false precision if you were to express this measurement as 12.34500 kg.

The representation of a positive number x to a precision of p significant digits has a numerical value that is given by the formula

round(10−n·x)·10n, where n = floor(log10 x) + 1 − p.

For a negative number, the numerical value is minus that of the absolute value. The number 0, to any precision, can be taken to be 0.

See also


Wikimedia Foundation. 2010.

Игры ⚽ Нужно решить контрольную?

Look at other dictionaries:

  • Precision (computer science) — In computer science, precision of a numerical quantity is a measure of the detail in which the quantity is expressed. This is usually measured in bits, but sometimes in decimal digits. It is related to precision in mathematics, which describes… …   Wikipedia

  • Arithmetic coding — is a method for lossless data compression. Normally, a string of characters such as the words hello there is represented using a fixed number of bits per character, as in the ASCII code. Like Huffman coding, arithmetic coding is a form of… …   Wikipedia

  • Precision — has the following meanings:;Concepts * Accuracy and precision, the degree of mutual agreement among a series of individual measurements or values * Precision (arithmetic), the number of digits with which a value is expressed * Precision… …   Wikipedia

  • Arithmetic underflow — (or floating point underflow , floating underflow , underflow ) is a condition that can occur when the result of a floating point operation would be smaller in magnitude (closer to zero, either positive or negative) than the smallest quantity… …   Wikipedia

  • precision — I. noun Date: 1740 1. the quality or state of being precise ; exactness 2. a. the degree of refinement with which an operation is performed or a measurement stated compare accuracy 2b b. the accuracy (as in binary or decimal places) with which a… …   New Collegiate Dictionary

  • Arithmetic and logical unit — Unité arithmétique et logique Pour les articles homonymes, voir UAL et ALU. L unité arithmétique et logique, abrégée UAL (ou bien ALU, Arithmetic Logic Unit en anglais), est l organe de l ordinateur chargé d effectuer les calculs. Le plus souvent …   Wikipédia en Français

  • Numeric precision in Microsoft Excel — As with other spreadsheets, Microsoft Excel works only to limited accuracy because it retains only a certain number of figures to describe numbers (it has limited precision). Excel nominally works with 8 byte numbers by default, a modified 1985… …   Wikipedia

  • Arbitrary-precision arithmetic — In computer science, arbitrary precision arithmetic indicates that calculations are performed on numbers whose digits of precision are limited only by the available memory of the host system. This contrasts with the faster fixed precision… …   Wikipedia

  • Quadruple-precision floating-point format — In computing, quadruple precision (also commonly shortened to quad precision) is a binary floating point computer number format that occupies 16 bytes (128 bits) in computer memory. In IEEE 754 2008 the 128 bit base 2 format is officially… …   Wikipedia

  • Extended precision — The term extended precision refers to storage formats for floating point numbers taking advantage of an opportunity not falling in to a regular sequence of single, double and quadruple precision such as 32 bit, 64 bit and 128 bit occupying two,… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”