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

Rounding to decimal places bug #2

Merged
merged 1 commit into from
Oct 7, 2020

Conversation

arronwoods
Copy link

Found some cases where the float returned by round() retains its extra decimal places when converted back to a string.

Using number_format() seems to get around this while maintaining backwards compatibility.

Test case for a known float that returned additional decimal places included.

@JohnathonKoster JohnathonKoster merged commit a892e45 into Stillat:master Oct 7, 2020
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.

2 participants