Ticket #142 (new enhancement)
Opened 4 years ago
decimal type support in pyYAML
|Reported by:||anonymous||Owned by:||xi|
I would like to be able to faithfully round trip real numbers with YAML avoiding the imprecision that happens in the conversions decimal text => binary float => decimal text. Is it possible to override the default pyYAML conversion of reals to double and use the decimal type instead? I want to avoid decorating the YAML document with explicit types.