-
Notifications
You must be signed in to change notification settings - Fork 37
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
double is a better then real #270
Comments
@Herringway : I think that's an issue we should address. |
Yes, but replacing |
So should we just keep the string representation and convert on demand ? |
How would you construct a Node then when you need to convert another format to YAML? |
Yes. That would keep the conversions to a minimum and allow values not perfectly representable by floating point types to be preserved between saves/loads. |
It would not be much different than it is now. This may not even need changes to the interface. |
Would you convert floating to string to store it in Node? |
Yes. It would be difficult to write it to the file otherwise. |
Mir has precise number printing that produces the minimal prices decimal form of a given floating point number. |
Excess precision cause looses in precision when converted to/form decimal representation. Almost all other non D YAML implementations uses double.
The text was updated successfully, but these errors were encountered: