Contents

UnitMass

A unit of measure for mass.

Declaration

class UnitMass

Overview

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

Mass

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

The UnitMass class defines its baseUnit() as kilograms, and provides the following units, which UnitConverterLinear converters initialize with the given 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

1e-9

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

Accessing Predefined Units

Initializers

See Also

Mass, Weight, and Force