Class

NSUnitMass

A unit of measure for mass.

Declaration

@interface NSUnitMass : NSDimension

Overview

You typically use instances of NSUnitMass to represent specific quantities of mass using the NSMeasurement class.

Mass

Mass is a fundamental property of matter that causes it to resist being accelerated by a force. The SI unit for mass is the kilogram (kg), which defined in terms of the mass of the international prototype kilogram.

The NSUnitMass class defines its base unit as kilograms, and provides the following units, which are initialized using NSUnitConverterLinear converters with the specified coefficients:

Name

Method

Symbol

Coefficient

Kilograms

kilograms

kg

1.0

Grams

grams

g

0.001

Decigrams

decigrams

dg

0.0001

Centigrams

centigrams

cg

0.00001

Milligrams

milligrams

mg

0.000001

Micrograms

micrograms

µg

1e9

Nanograms

nanograms

ng

1e-12

Picograms

picograms

pg

1e-15

Ounces

ounces

oz

0.0283495

Pounds

pounds

lb

0.453592

Stones

stones

st

0.157473

Metric Tons

metricTons

t

1000

Short Tons

shortTons

ton

907.185

Carats

carats

ct

0.0002

Ounces Troy

ouncesTroy

oz t

0.03110348

Slugs

slugs

slug

14.5939

Topics

Accessing the Base Unit

+ baseUnit

Returns the base unit of mass. Equal to kilograms.

Accessing Predefined Units

kilograms

Returns the kilograms unit of mass.

grams

Returns the grams unit of mass.

decigrams

Returns the decigrams unit of mass.

centigrams

Returns the centigrams unit of mass.

milligrams

Returns the milligrams unit of mass.

micrograms

Returns the micrograms unit of mass.

nanograms

Returns the nanograms unit of mass.

picograms

Returns the picograms unit of mass.

ounces

Returns the ounces unit of mass.

+ pounds

Returns the pounds unit of mass.

stones

Returns the stone unit of mass.

metricTons

Returns the metric tons unit of mass.

shortTons

Returns the short tons unit of mass.

carats

Returns the carats unit of mass.

ouncesTroy

Returns the ounces troy unit of mass.

slugs

Returns the slugs unit of mass.

Type Properties

Relationships

Inherits From

Conforms To

See Also

Mass, Weight, and Force

NSUnitPressure

A unit of measure for pressure.