Skip to content

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.

2 participants