Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#9690 closed Bugs (invalid)

std::numeric_limits<cpp_dec_float<...>>::digits is same as digits10

Reported by: Caligulaminus <caligulaminus@…> 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 Caligulaminus <caligulaminus@…>, 9 years ago

Summary: std::numeric_limits<mpf_dec_float<...>>::digits is same as digits10std::numeric_limits<cpp_dec_float<...>>::digits is same as digits10

cpp_dec_float not mpf_dec_float - sorry.

comment:2 by John Maddock, 9 years ago

Resolution: invalid
Status: newclosed

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.

comment:3 by Caligulaminus <caligulaminus@…>, 9 years ago

My bad. Sorry for wasting your time.

Note: See TracTickets for help on using tickets.