Boost logo

Boost :

From: Johan RÃ¥de (rade_at_[hidden])
Date: 2007-03-15 07:00:23

frederic.bron_at_[hidden] wrote:

> 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,
signbit etc.

The library is available in the vault:

--Johan RÃ¥de

Boost list run by bdawes at, gregod at, cpdaniel at, john at