Skip to content

Not all negative Celsius measurements convert to a negative Fahrenheit#1

Open
kizniche wants to merge 1 commit intoroder:masterfrom
kizniche:master
Open

Not all negative Celsius measurements convert to a negative Fahrenheit#1
kizniche wants to merge 1 commit intoroder:masterfrom
kizniche:master

Conversation

@kizniche
Copy link

@kizniche kizniche commented Apr 3, 2016

In your code, all Celsius measurements will be converted to Fahrenheit, then if negative is True, both Celsius and Fahrenheit will be set negative at the same time. However, because of the difference in scales, there are a range of measurements that are both negative in Celsius and positive in Fahrenheit.

For example, -5C = 23F

Therefore, if Celsius is negative, it should be set negative, when go through the c_to_f() conversion to Fahrenheit.

@achataigner
Copy link

Totally agree with kizniche : it would be nice to get this change in the master branch.

@roder : Could you merge this branch ? I see there is no change since 3 years in this project but I use it and I like it...

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