#9690 closed Bugs (invalid)
std::numeric_limits<cpp_dec_float<...>>::digits is same as digits10
| Reported by: | Owned by: | John Maddock | |
|---|---|---|---|
| Milestone: | To Be Determined | Component: | multiprecision |
| Version: | Boost 1.55.0 | Severity: | Problem |
| Keywords: | numeric_limits mpf_dec_float digits | Cc: |
Description
cpp_dec_float.hpp line 2955(v1.55.0, 2936 in current develop branch) should be something resolving to log2(Digits10) + x.
Change History (3)
comment:1 by , 9 years ago
| Summary: | std::numeric_limits<mpf_dec_float<...>>::digits is same as digits10 → std::numeric_limits<cpp_dec_float<...>>::digits is same as digits10 |
|---|
comment:2 by , 9 years ago
| Resolution: | → invalid |
|---|---|
| Status: | new → closed |
numeric_limits<>::digits does not give binary digits, it gives the number of radix digits, so for a decimal number type like cpp_dec_float digits and digits10 really should be the same.
Please reopen if I've misunderstood your point.
Note:
See TracTickets
for help on using tickets.

cpp_dec_float not mpf_dec_float - sorry.