Enumeration

EnergyFormatter.Unit

The units supported by the NSEnergyFormatter class.

Declaration

enum Unit : Int

Topics

Constants

case joule

The joule unit.

case kilojoule

The kilojoule unit.

case calorie

The calorie unit. This unit is often used in chemistry. It is abbreviated as “cal.”

case kilocalorie

The kilocalorie unit. This unit is used for food calories in some locales. In general, it is abbreviated as “kcal.” However, it may be abbreviated as “C” when used to represent food calories.