hgrecco / pint

Operate and manipulate physical quantities in Python
http://pint.readthedocs.org/
Other
2.33k stars 459 forks source link

Temperature conversion issue #1995

Open rufuswilson opened 1 month ago

rufuswilson commented 1 month ago

I was very surprised by the result of the following I was expecting 0.001.

>>> import pint
>>> pint.__version__
'0.23'
>>> UR = pint.UnitRegistry
>>> q = UR.Quantity(1.0,'millidegree_Celsius')
>>> q.m_as(units="degree_Celsius")
-273.149

Am I missing something or is this a bug?

dalito commented 1 month ago

This is known but not yet fixed, see #1754 (and #1381).