Floating Point

This wikibook discusses the IEEE 754 standard concerning floating-point numbers. Beginning chapters of this book focus on newcomers to the standard, who wish to understand and make use of floating point numbers, especially in a programming project. Later chapters of this book, however, focus more on the details of implementation of the IEEE 754 standard. This way, advanced users who want more details, or users who are working to create a floating-point implementation of their own can find the information they need. This book can be used as an ancillary reference source to support other books in the computer science and engineering fields.

Programming examples found in this book attempt to use pseudocode where possible, to prevent an over-reliance on any particular language or platform. Specific examples may utilize a single computer language or assembly language.

Prerequisites to this book include an understanding of exponents and Algebra, and an understanding of binary number representation.

Section 1: Number Representation

 * /Introduction/
 * /Scientific Notation/
 * /Fixed-Point Numbers/
 * /Floating-Point Numbers/

Section 2: IEEE 754

 * /IEEE 754/
 * /Floating Point Formats/
 * /Special Numbers/
 * /Normalization/

Section 3: Floating Point Arithmetic

 * /Rounding/
 * /Floating Point Arithmetic/
 * /Epsilon/
 * /Arithmetic Errors/
 * Guard Bits
 * /Comparing FP Numbers/

Section 4: Floating Point Hardware

 * Converting FP and Integers
 * Exceptions
 * Trap Handlers
 * Flags
 * /Floating Point Hardware/
 * /Soft Implementations/

Section 5: Algorithms

 * Arithmetic Algorithms
 * Exponents and Square Roots
 * Trancendentals