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 temperature converting rational issue #164

Merged
merged 1 commit into from
Feb 7, 2018
Merged

Conversation

mengqing
Copy link
Contributor

Converting temperatures involves mathematical calculations on rational numbers, however both of the inputs have to be fractions in order for the result to be a fraction, and to avoid rounding errors

2.4.1 > Unit.new("32 tempF").convert_to("tempC")
=> 5.68434e-14 tempC

Copy link
Owner

@olbrich olbrich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thanks!

@mengqing
Copy link
Contributor Author

No problem. I noticed that travis build has been stuck for ages. Maybe it needs to be restarted

@olbrich olbrich merged commit 858097f into olbrich:master Feb 7, 2018
@olbrich olbrich added this to the v2.3.0 milestone Mar 6, 2018
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