Proposal for std::numeric_limits<T>::max_digits10;

13 Jun
2005
13 Jun
'05
4:42 p.m.
I attach links to a proposal for very tiny addition to the numeric_limits. It provides an easy way for the novice to ensure that all potentially significant digits are output. For example, for float 6 decimal digits are guaranteed, but 9 may be significant. This is used in Boost test, and should be useful for lexical_cast, serialization etc. Comments, objections, better name suggestions, etc welcome. Paul http://www.hetp.u-net.com/public/Cpp/numeric_limits%20significant%20digits.p df aka http://tinyurl.com/9qxdk Paul A Bristow Prizet Farmhouse, Kendal, Cumbria UK LA8 8AB +44 1539 561830 +44 7714 330204 mailto: pbristow@hetp.u-net.com
7308
Age (days ago)
7308
Last active (days ago)
0 comments
1 participants
participants (1)
-
Paul A Bristow