A unit of measure for temperature.
- iOS 10.0+
- macOS 10.12+
- Mac Catalyst 13.0+
- tvOS 10.0+
- watchOS 3.0+
You typically use instances of
NSUnit to represent specific quantities of temperature using the
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).
NSUnit class defines its base unit to be
kelvin, and provides the following units, which are initialized using
Unit converters with the specified coefficients and constants: