dlang-community / D-YAML

YAML parser and emitter for the D programming language
https://dlang-community.github.io/D-YAML/
Boost Software License 1.0
119 stars 37 forks source link

Loss of precision when representing reals #249

Open marcioapm opened 4 years ago

marcioapm commented 4 years ago

Real values are represented with the %12f format specifier, which in many cases is insufficient, because it has only 6 decimal places.

9il commented 3 years ago

Mir Algorithm has Rhy (smallest precise decimal representation). Also, it has precise number parsing. mir.conv : to and mir.format : text, print can be used to/from string precise conversion.