Boost C++ Libraries of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is an the documentation for an old version of boost. Click here for the latest Boost documentation.

Floating Point Utilities

Rounding Truncation and Integer Conversion
Rounding Functions
Truncation Functions
Integer and Fractional Part Splitting (modf)
Floating-Point Classification: Infinities and NaNs
Sign Manipulation Functions
Facets for Floating-Point Infinities and NaNs
Design Rationale
Floating-Point Representation Distance (ULP), and Finding Adjacent Floating-Point Values
Finding the Next Representable Value in a Specific Direction (nextafter)
Finding the Next Greater Representable Value (float_next)
Finding the Next Smaller Representable Value (float_prior)
Calculating the Representation Distance Between Two Floating Point Values (ULP) float_distance
Advancing a Floating Point Value by a Specific Representation Distance (ULP) float_advance