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

Inaccurate conversion from meters to ft. #576

Closed
MeterKishor opened this issue Feb 22, 2023 · 1 comment
Closed

Inaccurate conversion from meters to ft. #576

MeterKishor opened this issue Feb 22, 2023 · 1 comment
Assignees
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@MeterKishor
Copy link

convert(2000, 'ft').to('meters') returns 609.6 which is correct
but
convert(609.6, 'meter').to('ft') returns 1999.9999999999998 which should be 2000 ft and is incorrect ?

@jonahsnider jonahsnider added the bug Something isn't working label Feb 22, 2023
@jonahsnider jonahsnider self-assigned this Feb 22, 2023
@jonahsnider
Copy link
Owner

This is expected behavior. Floating point numbers are not a bug.

@jonahsnider jonahsnider closed this as not planned Won't fix, can't repro, duplicate, stale Feb 23, 2023
@jonahsnider jonahsnider added the wontfix This will not be worked on label Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants