Navigation Menu

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

Bug, convertUnit('mi', 0) return 8 miles not 0 due to rounding #40

Closed
jamesbrucepower opened this issue Jan 29, 2015 · 0 comments
Closed
Assignees

Comments

@jamesbrucepower
Copy link

if you call

convertUnit('mi', 0)

it returns 8 miles

convertUnit('mi',0.00001) works fine

This is due to the rounding on the unit multiplication

@manuelbieh manuelbieh self-assigned this Jan 29, 2015
manuelbieh pushed a commit that referenced this issue Jun 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

2 participants