Beruflich Dokumente
Kultur Dokumente
Abstract – The IEEE Standard for Floating-Point The term floating point refers to the fact that a
Arithmetic (IEEE 754) is a technical standard for number's radix point (decimal point, or, more
floating-point computation established in 1985 by the commonly in computers, binary point) can "float"; that
Institute of Electrical and Electronics Engineers is, it can be placed anywhere relative to the significant
(IEEE). The standard addressed many problems found digits of the number. This position is indicated as the
in the diverse floating point implementations that made exponent component, and thus the floating-point
them difficult to use reliably and portably. Many representation can be thought of as a kind of scientific
hardware floating point units now use the IEEE 754 notation [1].
standard. This standard is commonly used in software A floating-point system can be used to represent,
that is not sensitive to calculation errors (such as stock with a fixed number of digits, numbers of different
market applications or industry applications). orders of magnitude: e.g. the distance between galaxies
or the diameter of an atomic nucleus can be expressed
Keywords: ieee 754; php; java; floating point; float; with the same unit of length. The result of this dynamic
range is that the numbers that can be represented are not
uniformly spaced; the difference between two
I. INTRODUCTION IN FLOATING POINT consecutive representable numbers grows with the
ARITHMETICS chosen scale [2].
The IEEE Standard for Floating-Point Arithmetic
In computing, floating-point arithmetic is arithmetic (IEEE 754) is a technical standard for floating-point
using formulaic representation of real numbers as an computation established in 1985 by the Institute of
approximation so as to support a trade-off between Electrical and Electronics Engineers (IEEE).
range and precision. A number is, in general, Over the years, a variety of floating-point
represented approximately to a fixed number of representations have been used in computers. However,
significant digits (the significand) and scaled using an since the 1990s, the most commonly encountered
exponent in some fixed base; the base for the scaling is representation is that defined by the IEEE 754 Standard.
normally two, ten, or sixteen. A number that can be The speed of floating-point operations, commonly
represented exactly is of the following form: measured in terms of FLOPS, is an important
characteristic of a computer system, especially for
applications that involve intensive mathematical
Figure 1 – formula for floating point representation calculations.
where significand is an integer (i.e., in Z), base is an
integer greater than or equal to two, and exponent is II. IEEE floating point
also an integer. For example:
The Java language supports two primitive floating
point types: float and double, and their wrapper class
counterparts, Float and Double. These are based on the
Figure 2 – Floating Point for base 10 IEEE 754 standard, which defines a binary standard for
32-bit floating point and 64-bit double precision
floating point binary-decimal numbers[4].
III. REPRESENTATION EXAMPLE
REFERENCES
[1] https://en.wikipedia.org/wiki/Floating-point_arithmetic
[2] W. Smith, Steven (1997). "Chapter 28, Fixed versus Floating
Point". The Scientist and Engineer's Guide to Digital Signal
Processing. California Technical Pub. p. 514. ISBN 0-9660176-
3-3. Retrieved 2015-07-21.
[3] https://en.wikipedia.org/wiki/IEEE_floating_point
[4] https://www.ibm.com/developerworks/library/j-jtp0114/
[5] http://docs.oracle.com/cd/E19957-01/806-
3568/ncg_goldberg.html
[6] http://grouper.ieee.org/groups/754/