yunruse / Noether

Just another units package
MIT License
9 stars 0 forks source link

Temperature units #7

Closed yunruse closed 1 year ago

yunruse commented 1 year ago

Feature suggestion

Affine units take an additional "zero point" argument.

Temperature units would be defined as:

celsius = AffineUnit(kelvin*1, kelvin*273.15, "celsius", "ºC")
rankine = Unit(kelvin * 5/9, "rankine", "°R")
fahrenheit = AffineUnit(rankine, rankine(459.67), "fahrenheit", "ºF")
yunruse commented 1 year ago

Implemented!