Celsius to Fahrenheit Conversions - #2188
Conversation
|
Hey @karimzakir02, TravisCI finished with status TravisBuddy Request Identifier: 47d937a0-c14a-11ea-9c30-6301f8ea01dd |
|
Hey @karimzakir02, TravisCI finished with status TravisBuddy Request Identifier: f56d7cd0-c14c-11ea-9c30-6301f8ea01dd |
|
Hey @karimzakir02, TravisCI finished with status TravisBuddy Request Identifier: f3cc3e00-c14e-11ea-9c30-6301f8ea01dd |
|
Hey @karimzakir02, TravisCI finished with status TravisBuddy Request Identifier: e3274440-c14f-11ea-9c30-6301f8ea01dd |
cclauss
left a comment
There was a problem hiding this comment.
Why round() in one algorithm but not in the other?
Co-authored-by: Christian Clauss <cclauss@me.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
…02/Python into celsius_to_fahrenheit
| fahrenheit = float(fahrenheit) | ||
| return round((fahrenheit - 32) * 5 / 9, 2) |
There was a problem hiding this comment.
| fahrenheit = float(fahrenheit) | |
| return round((fahrenheit - 32) * 5 / 9, 2) | |
| return round((float(fahrenheit) - 32) * 5 / 9, 2) |
cclauss
left a comment
There was a problem hiding this comment.
Perhaps we should put both algorithms in a single file: celsius_fahrenheit.py or we could call it temperatures.py to leave room for Kelvins, and friends. https://en.wikipedia.org/wiki/Conversion_of_units_of_temperature
|
Hey @karimzakir02, TravisCI finished with status TravisBuddy Request Identifier: 568b3a70-c5bc-11ea-9068-c57c6eb78cd5 |
cclauss
left a comment
There was a problem hiding this comment.
Well done! Thanks for doing this.
* added conversions between celsius and fahrenheit * Renamed celsius_to_fahrenheit.py * Fixed spelling issues * modified file to fit the 88-character limit * added changes to pass the travis-ci test * further changed the files to pass the travis-ci test * further changed the files to pass the travis-ci test * Shortened conversions/fahrenheit_to_celsius.py Co-authored-by: Christian Clauss <cclauss@me.com> * Type hints added to conversions/fahrenheit_to_celsius.py Co-authored-by: Christian Clauss <cclauss@me.com> * changed the code to let the caller do the printing * addressed the changes made on github * Added Kelvin conversions and put temperature functions in a single file * Removed whitespace from a blank line * Update temperature_conversions.py Co-authored-by: Christian Clauss <cclauss@me.com>

Describe your change:
Added two algorithms to convert between Celsius and Fahrenheit
Checklist:
Fixes: #{$ISSUE_NO}.