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

Fix scenario where tostring on numeric value shows wrong answer #140

Merged

Conversation

kstrauss
Copy link
Contributor

if you have a float value with say 2 decimal places and a value of 3.367 when calling ToString would show 3.40 which is wrong.

Updated the ToString overloads to $"F{DecimalCount}", which will show decimal places to the accuracy of the decimal count.

I have run the testsuite and they all continue to pass.

…s and a value of 3.367 when calling ToString would show 3.40 which is wrong.
@chrisrichards chrisrichards merged commit 3c7b6e6 into yellowfeather:main Aug 26, 2021
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

Successfully merging this pull request may close these issues.

None yet

2 participants