We lose precision when we perform the conversion from double to string. Link to code. The default precision for a double in str::stream is set to 6 digits, which causes the loss of precision.
This problem was identified in HELP-48955.
We should change it so that we get a string representing the exact same doubleValue and can roundtrip and retrieve the same value back.
We also want comprehensive and randomized tests to verify this behavior.
- is cloned by
-
SERVER-81585 Address inconsistent floating point stringification between releases
- Closed
- related to
-
SERVER-82775 Investigate whether v5.0_update_multiversion_fuzzer_replication task is flaky
- Backlog