Contents

UnitTemperature

A unit of measure for temperature.

Declaration

class UnitTemperature

Overview

You typically use instances of UnitTemperature to represent specific quantities of temperature using the NSMeasurement class.

Temperature

Temperature is a comparative measure of thermal energy. The SI unit for temperature is the kelvin (K), which is defined in terms of the triple point of water. Temperature is also commonly measured by degrees of various scales, including Celsius (°C) and Fahrenheit (°F).

The UnitTemperature class defines its baseUnit() to be kelvin, and provides the following units, which are initialized using UnitConverterLinear converters with the specified coefficients and constants:

Name

Method

Symbol

Coefficient

Constant

Kelvin

Kelvin

K

1

0

Degree Celsius

Celsius

°C

1.0

273.15

Degree Fahrenheit

Fahrenheit

°F

0.55555555555556

255.37222222222427

Topics

Accessing the Base Unit

Accessing Predefined Units

Initializers

See Also

Energy, Heat, and Light