Topic: Defect Report: max_digits10 missing from numeric_limits specializations


Author: bop@gmb.dk ("Bo Persson")
Date: Mon, 20 Nov 2006 06:22:16 GMT
Raw View
This is based on the draft N2134.

Section 18.2.1.5 starts out by saying that "All members shall be provided
for all specializations."

Then it goes on to show specializations for float and bool, where one member
is missing.



Bo Persson


---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html                      ]





Author: M.Kronenburg@inter.nl.net ("Maarten Kronenburg")
Date: Tue, 21 Nov 2006 19:31:38 GMT
Raw View
""Bo Persson""  wrote in message
> This is based on the draft N2134.
>
> Section 18.2.1.5 starts out by saying that "All members shall be provided
> for all specializations."
>
> Then it goes on to show specializations for float and bool, where one
member
> is missing.
>
I agree, just adding the comment that the exact number of decimal digits
is digits * ln(radix) / ln(10), where probably this real number is
rounded downward for digits10, and rounded upward for max_digits10
(when radix=10, then digits10=max_digits10).
Why not add this exact definition also to the standard, so the user
knows what these numbers exactly mean.
>
>
> Bo Persson
>
>
> ---
>


---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html                      ]