From: Johan RÃ¥de (rade_at_[hidden])
Date: 2007-03-15 07:00:23
> Could we have the same in C++:
> 1. 2 digit in the exponent and more only if needed
The floating_point_utilities library does not address this issue.
> 2. a standard format for not a number and infinity: nan and inf. (They are
> roughtly implementation defined in C!)
The floating_point_utilities library solves this problem.
See the documentation of the header nonfinite_num_facets.hpp.
The library also provides portable implementations of fpclassify, isnan,
The library is available in the vault:
Boost list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk