Module measurements::mass[][src]

Types and constants for handling masses.

Structs

Mass

The Mass struct can be used to deal with mass in a common way. Metric, avoirdupois imperial and troy imperial units are supported.

Constants

KILOGRAM_CARAT_FACTOR

Number of carats in a kg

KILOGRAM_GRAINS_FACTOR

Number of Grains in a kg

KILOGRAM_GRAM_FACTOR

Number of g in a kg

KILOGRAM_LONG_TONS_FACTOR

Number of Long (international) Tons in a kg

KILOGRAM_MICROGRAM_FACTOR

Number of µg in a kg

KILOGRAM_MILLIGRAM_FACTOR

Number of mg in a kg

KILOGRAM_NANOGRAM_FACTOR

Number of ng in a kg

KILOGRAM_OUNCES_FACTOR

Number of Avoirdupois Ounces in a kg

KILOGRAM_PENNYWEIGHTS_FACTOR

Number of Pennyweights in a kg

KILOGRAM_POUNDS_FACTOR

Number of Avoirdupois Pounds in a kg

KILOGRAM_SHORT_TONS_FACTOR

Number of Short (US) Tons in a kg

KILOGRAM_STONES_FACTOR

Number of Avoirdupois Stone in a kg

KILOGRAM_TONNE_FACTOR

Number of Tonnes in a kg

KILOGRAM_TROY_OUNCES_FACTOR

Number of Troy Ounces in a kg

KILOGRAM_TROY_POUNDS_FACTOR

Number of Troy Pounds in a kg