-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
money_put::do_put contains:
Lines 676 to 678 in f0f0b55
| for (_Exp = 0; 1e35 <= _Val && _Exp < 5000; _Exp += 10) { | |
| _Val /= 1e10; // drop 10 zeros before decimal point | |
| } |
Like almost all of our pre-charconv floating-point formatting, I believe that this is incorrect - dividing by a power of 10 isn't an exact operation.
This probably isn't a significant issue in practice (as few people have more than 10^35 units of money, although one can dream).
CaseyCarter, cbezault, AdamBucior, cpplearner and frederick-vs-ja
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working