Binary Integer Decimal

Binary Integer Decimal

The draft IEEE 754r standard proposes an encoding format for decimal floating point numbers in which the significand and the exponent (and the payloads of NaNs) can be encoded in two ways, referred to in the draft as binary encoding and decimal encoding. [cite web
title = DRAFT Standard for Floating Point Arithmetic P754
date = 2006-10-04
url = http://754r.ucbtest.org/drafts/archive/2006-10-04.pdf
accessdate = 2007-07-01
] .

Format

Cohort

A decimal floating point number can be encoded in several ways, the different ways represent different precisions, for example 100.0 is encoded as 1000*10-1, 100.00 is encoded as 10000*10-2. The set of possible encodings of the same numerical value is called a "cohort" in the standard. If the result of a calculation is inexact the largest amount of significant data is preserved by selecting the cohort member with the largest integer that can be stored in the significand along with the required exponent.

Range

The proposed IEEE 754r standard limits the range of numbers to a significand of the form 10n−1, where n is the number of whole decimal digits that can be stored in the bits available so that decimal rounding is effected correctly.

Performance

A binary encoding is inherently less efficient for conversions to or from decimal-encoded data, such as strings (ASCII, Unicode, etc.) and BCD. A binary encoding is therefore best chosen when the data are binary rather than decimal. IBM has published some unverified performance data at [http://www2.hursley.ibm.com/decimal/decperf.html] , however as both packages are available as open-source these figures could be verified indepedently.

ee also

IEEE 754r

References


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать реферат

Look at other dictionaries:

  • Binary-coded decimal — In computing and electronic systems, binary coded decimal (BCD) is a digital encoding method for numbers using decimal notation, with each decimal digit represented by its own binary sequence. In BCD, a numeral is usually represented by four bits …   Wikipedia

  • Binary numeral system — Numeral systems by culture Hindu Arabic numerals Western Arabic (Hindu numerals) Eastern Arabic Indian family Tamil Burmese Khmer Lao Mongolian Thai East Asian numerals Chinese Japanese Suzhou Korean Vietnamese …   Wikipedia

  • Decimal floating point — Floating point precisions IEEE 754: 16 bit: Half (binary16) 32 bit: Single (binary32), decimal32 64 bit: Double (binary64), decimal64 128 bit: Quadruple (binary128), decimal128 Other: Minifloat · Extended precision Arbitrary precision… …   Wikipedia

  • Integer (computer science) — In computer science, an integer is a datum of integral data type, a data type which represents some finite subset of the mathematical integers. Integral data types may be of different sizes and may or may not be allowed to contain negative values …   Wikipedia

  • Binary prefix — Prefixes for bit and byte multiples Decimal Value SI 1000 k kilo 10002 M mega …   Wikipedia

  • Binary code — The word Wikipedia represented in ASCII binary. A binary code is a way of representing text or computer processor instructions by the use of the binary number system s two binary digits 0 and 1. This is accomplished by assigning a bit string to… …   Wikipedia

  • Decimal — For other uses, see Decimal (disambiguation). This article aims to be an accessible introduction. For the mathematical definition, see Decimal representation. Numeral systems by culture Hindu Arabic numerals Western Arabic (Hindu numerals)… …   Wikipedia

  • Integer (Datentyp) — Mit Integer (ˈɪnteːɡɐ oder ˈɪntɪdʒə, englisch für ganze Zahl von lat. numerus integer) wird in der Informatik ein Datentyp bezeichnet, der ganzzahlige Werte speichert. Der Wertebereich ist endlich. Berechnungen mit Integern sind in der Regel… …   Deutsch Wikipedia

  • Decimal computer — Decimal computers, computers which have a decimal architecture, represent numbers and/or addresses in decimal, and provide instructions to operate on those numbers and/or addresses directly; examples of encoding used are BCD, Excess 3, two out of …   Wikipedia

  • Binary multiplier — A binary multiplier is an electronic circuit used in digital electronics, such as a computer, to multiply two binary numbers. It is built using binary adders. A variety of computer arithmetic techniques can be used to implement a digital… …   Wikipedia

Share the article and excerpts

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