Temperature
Represents a temperature value.
To construct a Temperature, use the extension functions celsius, fahrenheit, kelvin and so on.
To get the value of this Temperature expressed in a particular TemperatureUnit, use the functions toLong, toDouble, and so on.
Functions
Link copied to clipboard
Link copied to clipboard
Subtracts other from this Temperature. This currently does not handle integer overflow.
Link copied to clipboard
Adds other to this Temperature. This currently does not handle integer overflow.
Link copied to clipboard
Converts this Temperature to the given TemperatureUnit, returning a Double representing the precise value.
Link copied to clipboard
Converts this Temperature to the given TemperatureUnit, rounding to the nearest whole number.