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

"C" as Celsius recognized, but "°C" is not #50

Open
g-liu opened this issue Sep 8, 2015 · 3 comments
Open

"C" as Celsius recognized, but "°C" is not #50

g-liu opened this issue Sep 8, 2015 · 3 comments

Comments

@g-liu
Copy link

g-liu commented Sep 8, 2015

It would be wonderful if the degree symbol was recognized as part of a temperature unit. Then, there would be no need to strip out the ° symbol when performing calculations or conversions.

@MikiDi
Copy link

MikiDi commented Apr 24, 2016

I agree that support for °C would be great, although it's not easy to implement as the temperature units are a very special case (discussion here #1 and here #37) ... btw, 'C' is the SI-symbol for Coulomb (that's why it was recognized, see here), you can use 'tempC' for a temperature in °C

@MeirionHughes
Copy link

MeirionHughes commented May 10, 2018

Is this really that difficult? the definition: "By international agreement, since 1954 the unit "degree Celsius" and the Celsius scale are defined by absolute zero... This definition also precisely relates the Celsius scale to the Kelvin scale, which defines the SI base unit of thermodynamic temperature with symbol K... This means that a temperature difference of one degree Celsius and that of one kelvin are exactly the same."

edit: I see from the implementation why its problematic now.

perhaps you could have 1 °C = 274.15 K and 1 Δ°C = 1 K

OR 1 °C = 274.15 K and 1 C° = 1 K

"This is sometimes solved by using the symbol °C (pronounced "degrees Celsius") for a temperature, and C° (pronounced "Celsius degrees") for a temperature interval, although this usage is non-standard.[27]"
ref: https://en.wikipedia.org/wiki/Celsius

@bcowgill
Copy link

Also one can use the unicode ℃ ℉ as an alias

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

No branches or pull requests

4 participants