Class

UnitConcentrationMass

A unit of measure for concentration of mass.

Declaration

class UnitConcentrationMass : Dimension

Overview

You typically use instances of NSUnitConcentrationMass to represent specific quantities of concentration using the NSMeasurement class.

Concentration of Mass

Concentration is the abundance of a constituent within a volume. Concentration can be expressed by SI derived units in terms of kilograms per cubic meter (kg/m3).

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

Name

Method

Symbol

Coefficient

Grams Per Liter

gramsPerLiter

g/L

1

Milligrams Per Deciliter

milligramsPerDeciliter

mg/dL

0.01

Millimoles Per Liter

millimolesPerLiter(withGramsPerMole:)

mmol/L

18 * gramsPerMole

Topics

Accessing Predefined Units

class var gramsPerLiter: UnitConcentrationMass

Returns the grams per liter unit of concentration.

class var milligramsPerDeciliter: UnitConcentrationMass

Returns the milligrams per deciliter unit of concentration.

class func millimolesPerLiter(withGramsPerMole: Double) -> UnitConcentrationMass

Returns the millmoles per liter unit with the specified number of grams per mole.

Relationships

Inherits From

See Also

Concentration and Dispersion

class UnitDispersion

A unit of measure for an amount-of-substance fraction.

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