Class

NSUnitTemperature

A unit of measure for temperature.

Declaration

@interface NSUnitTemperature : NSDimension

Overview

You typically use instances of NSUnitTemperature 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 NSUnitTemperature class defines its base unit to be kelvin, and provides the following units, which are initialized using NSUnitConverterLinear 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

+ baseUnit

Returns the base unit of temperature. Equal to kelvin.

Accessing Predefined Units

kelvin

Returns the kelvin unit of temperature.

celsius

Returns the degree Celsius unit of temperature.

fahrenheit

Returns the degree Fahrenheit unit of temperature.

Relationships

Inherits From

Conforms To

See Also

Energy, Heat, and Light

NSUnitEnergy

A unit of measure for energy.

NSUnitPower

A unit of measure for power.

NSUnitIlluminance

A unit of measure for luminance.