
hi all, is there a c++/boost.math way to find the highest representable floating point number lower than a certain limit ... something like boost::supremum<float>(1.f)? thanks, tim -- tim@klingt.org http://tim.klingt.org Avoid the world, it's just a lot of dust and drag and means nothing in the end. Jack Kerouac

Tim Blechmann wrote:
hi all,
is there a c++/boost.math way to find the highest representable floating point number lower than a certain limit ... something like boost::supremum<float>(1.f)?
Do you mean as in the C99 function nextbefore? It's not in Boost.Math currently, but really should be, might not be too hard to implement either I suspect... John.

On Wed, 16 Apr 2008 12:38:22 +0100, John Maddock wrote:
Tim Blechmann wrote:
hi all,
is there a c++/boost.math way to find the highest representable floating point number lower than a certain limit ... something like boost::supremum<float>(1.f)?
Do you mean as in the C99 function nextbefore?
oh, i wasn't aware of the c99-style nextafter-style functions ... although i'd like to see a c++ implementation, the c99-style functions should be ok for me for now ...
It's not in Boost.Math currently, but really should be, might not be too hard to implement either I suspect...
i would really like to see them in boost.math ... i'll file a feature request in the tracker ... thanks, tim -- tim@klingt.org http://tim.klingt.org Question: Then what is the purpose of this "experimental" music? Answer: No purposes. Sounds. John Cage
participants (2)
-
John Maddock
-
Tim Blechmann