
15 Mar
2007
15 Mar
'07
11 a.m.
frederic.bron@alcan.com 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: http://boost-consulting.com/vault/index.php?directory=Math%20-%20Numerics& --Johan Råde