mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-16 12:52:46 +00:00
b015926f8e
There were 2 issues with the way we formatted floating point decimals: if the part after the decimal point exceeded the max of an u64 we would generate wildly incorrect decimals, and we applied no rounding. With this new code, we emit decimals one by one and perform a simple reverse string walk to round the number up if required. |
||
---|---|---|
.. | ||
expected | ||
input |