Skip to content

Temperature

The Temperature category supports conversions between Celsius, Fahrenheit, and Kelvin.

  • celsius °C
  • fahrenheit °F
  • kelvin K
import { Conversion } from "@devhaven/unit-conversion";
const convert = new Conversion();
convert(0).from("celsius").to("fahrenheit");
convert(212).from("fahrenheit").to("celsius");
convert(100).from("celsius").to("kelvin");
convert(0).from("kelvin").to("celsius");
convert(100).from("celsius").to("fahrenheit");
convert(32).from("fahrenheit").to("celsius");