News for hackers. Stuff that matters.
Re:GNU Units by FnuGk on Wednesday January 06, 2021 @09:52AM (#25658232)

  You have: 1 kelvin
  You want: degcelsius
     * 1
     / 1
This does not seem right
Re:GNU Units by TurkTurkleton on Wednesday January 06, 2021 @09:56AM (#25658270)
It is. The unit Kelvin is equal to the degree Celsius. If you want to convert temperatures, you need to use tempK and tempC:

    You have: tempK(1)
    You want: tempC
            -272.15
Re:GNU Units by LordHeini on Wednesday January 06, 2021 @10:05AM (#25658347)
Makes sense because temperatures don't have a linear conversion.

From the man page: Nonlinear units are represented using functional notation. They make possible nonlinear unit conversions such as temperature.

  You have: tempK(1)
  You want: tempC
 -272.15
Edit: seems i am not alone :D
Re:GNU Units by dagw on Wednesday January 06, 2021 @09:56AM (#25658260)
It's right in the sense that the units are the same size. IE if something increases 10 deg K it also increases 10 deg C. But it's obvious to humans that that isn't what you where asking.

Compare:

   You have: 1 degF
   You want: degcelsius
           * 0.55555556
           / 1.8
Re:GNU Units by tialaramex on Wednesday January 06, 2021 @10:29AM (#25658565)
Nitpick: There are no "deg K", because it is an absolute system it doesn't have degrees.

Notice you also don't need degrees metre, degrees watt or degrees newton, because those are absolute units they are metres, watts and newtons. It is Celsius (and Fahrenheit) which are weird because they aren't absolute but instead have this arbitrary zero point.

Re:GNU Units by boogies on Wednesday January 06, 2021 @09:59AM (#25658297)
https://www.gnu.org/software/units/manual/units.html#Tempera...

> Conversions between temperatures are different from linear conversions between temperature increments—see the example below. The absolute temperature conversions are handled by units starting with ‘temp’, and you must use functional notation. The temperature-increment conversions are done using units starting with ‘deg’ and they do not require functional notation.