Skip to content
New issue

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

[YamlConfig]: float value sometimes written like an int, then can't be read #149

Open
bretthall opened this issue Mar 1, 2019 · 0 comments

Comments

@bretthall
Copy link

bretthall commented Mar 1, 2019

If I have a yaml file that I use to create a type using FSharp.Configuration.YamlConfig and that file contains a floating point value like floatValue: 1.0 then the associated member of the F# type will be a float. If I then use the Save method of one of these objects with the floatValue set to 1.0 it should be written as 1.0 so that it can be read properly. On some machines this value will be written as 1 instead, and the resulting file cannot be read (there will be an error about having an Int32 for that property instead of a Double).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant