Opened 7 years ago
Last modified 6 years ago
#12133 new Bugs
cpp_dec_float should compare to precision
Reported by: | Owned by: | John Maddock | |
---|---|---|---|
Milestone: | To Be Determined | Component: | multiprecision |
Version: | Boost 1.60.0 | Severity: | Problem |
Keywords: | Cc: | e_float@… |
Description
See this accepted answer for a method to compare two cpp_dec_float's *without* including the guard digits in the comparison. Specifically see the second comment on the answer by "namezero".
http://stackoverflow.com/a/27381898
(I find myself about to implement similar "epsilon" logic)
Note:
See TracTickets
for help on using tickets.
This is one for Christopher Kormanyos to answer really... but my guess is "by design".
Ideally we would have a true decimal type that rounded correctly... but it's hard to do both correctly and efficiently.