We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug Take a small float value in yaml, e.g.:
value: 0.00001
then:
map[string]interface{}
That new yaml now cannot be decoded because the unmarshal + marshal step changes value from 0.00001 to 1e-05.
0.00001
1e-05
1e-05 is interpreted by the final decoder as a string.
To Reproduce
Playground example: https://go.dev/play/p/mxsL_Dp_naC
This issue affects values of 0.00001 (1e-05) or lower. Larger values (e.g. 0.0001, 10000000000) are fine.
Expected behavior Unmarshal-marshal should result in yaml that a decoder can parse.
Version Variables
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Describe the bug
Take a small float value in yaml, e.g.:
then:
map[string]interface{}
That new yaml now cannot be decoded because the unmarshal + marshal step changes value from
0.00001
to1e-05
.1e-05 is interpreted by the final decoder as a string.
To Reproduce
Playground example:
https://go.dev/play/p/mxsL_Dp_naC
This issue affects values of 0.00001 (1e-05) or lower. Larger values (e.g. 0.0001, 10000000000) are fine.
Expected behavior
Unmarshal-marshal should result in yaml that a decoder can parse.
Version Variables
The text was updated successfully, but these errors were encountered: