Boost C++ Libraries

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

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

Advancing a Floating Point Value by a Specific Representation Distance (ULP) float_advance

Function float_advance advances a floating point number by a specified number of ULP.

Synopsis

#include <boost/math/special_functions/next.hpp>

namespace boost{ namespace math{

template <class FPT>
FPT float_advance(FPT val, int distance);

}} // namespaces
Description - float_advance

Returns a floating point number r such that float_distance(val, r) == distance.


PrevUpHomeNext