Class

UnitPower

A unit of measure for power.

Declaration

class UnitPower : Dimension

Overview

You typically use instances of NSUnitPower to represent specific quantities of power using the NSMeasurement class.

Power

Power is the amount of energy used over time. The SI unit for power is the watt (W), which is derived as one joule per second (1W = 1J / 1s).

The NSUnitPower class defines its base unit as watts, and provides the following units, which are initialized using UnitConverterLinear converters with the specified coefficients:

Name

Method

Symbol

Coefficient

Terawatts

terawatts

TW

1e12

Gigawatts

gigawatts

GW

1e9

Megawatts

megawatts

MW

1000000.0

Kilowatts

kilowatts

kW

1000.0

Watts

watts

W

1

Milliwatts

milliwatts

mW

0.001

Microwatts

microwatts

µW

0.000001

Nanowatts

nanowatts

nW

1e-9

Picowatts

picowatts

pW

1e-12

Femtowatts

femtowatts

fW

1e-15

Horsepower

horsepower

hp

745.7

Topics

Accessing Predefined Units

class var terawatts: UnitPower

Returns the terawatts unit of power.

class var gigawatts: UnitPower

Returns the gigawatts unit of power.

class var megawatts: UnitPower

Returns the megawatts unit of power.

class var kilowatts: UnitPower

Returns the kilowatts unit of power.

class var watts: UnitPower

Returns the watts unit of power.

class var milliwatts: UnitPower

Returns the milliwatts unit of power.

class var microwatts: UnitPower

Returns the microwatts unit of power.

class var nanowatts: UnitPower

Returns the nanowatts unit of power.

class var picowatts: UnitPower

Returns the picowatts unit of power.

class var femtowatts: UnitPower

Returns the femtowatts unit of power.

class var horsepower: UnitPower

Returns the horsepower unit of power.

Relationships

Inherits From

See Also

Energy, Heat, and Light

class UnitEnergy

A unit of measure for energy.

class UnitTemperature

A unit of measure for temperature.

class UnitIlluminance

A unit of measure for luminance.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software