Floating-Point Representation

In the IEEE 754-2008 standard (referred to as IEEE 754 henceforth), a floating-point representation is an unencoded member of a floating-point format which represents either a finite number, a signed infinity, or some kind of NaN. An element of the subset of floating-point representations consisting of finite numbers and signed infinities is called a floating-point number.

A floating-point representation of a finite real number has three components: A sign, an exponent, and a significand. The numerical value of a representation of a finite floating-point number is the signed product of its significand and its radix b in {2,10} raised to the power of its exponent; in particular, note that the floating-point representation of a given value may not be unique, particularly when the radix is 10 (IEEE Computer Society 2008).

When implemented at the machine-level, representations of floating-point data are encoded as k-element b-ary sequences of digits - here, k is a parameter determined by the precision p of the representation - which are partitioned into three distinct fields. Due to the fact that values may have more than one representation, it may happen that encodings fail to be in one-to-one correspondence with the values they represent. Even so, IEEE 754 requires that all encoding procedures adhere to a strict set of guidelines in terms of how each representation is encoded, thereby guaranteeing that both the representation r and the value v of each floating-point datum be inferable from the fields of the encoding itself. What's more, the partitions of any encoding are formatted so that "auxiliary information" such as the payload of a NaN can be deduced by decoding such an encoded representation (IEEE Computer Society 2008, pp. 9-12).

Wolfram Web Resources

Mathematica »

The #1 tool for creating Demonstrations and anything technical.

Wolfram|Alpha »

Explore anything with the first computational knowledge engine.

Wolfram Demonstrations Project »

Explore thousands of free applications across science, mathematics, engineering, technology, business, art, finance, social sciences, and more.

Computerbasedmath.org »

Join the initiative for modernizing math education.

Online Integral Calculator »

Solve integrals with Wolfram|Alpha.

Step-by-step Solutions »

Walk through homework problems step-by-step from beginning to end. Hints help you try the next step on your own.

Wolfram Problem Generator »

Unlimited random practice problems and answers with built-in Step-by-step solutions. Practice online or make a printable study sheet.

Wolfram Education Portal »

Collection of teaching and learning tools built by Wolfram education experts: dynamic textbook, lesson plans, widgets, interactive Demonstrations, and more.

Wolfram Language »

Knowledge-based programming for everyone.