Class

UnitVolume

The NSUnitVolume class is an Dimension subclass that encapsulates units of measure for volume.

Overview

You typically use instances of NSUnitVolume to represent specific quantities of volume using the NSMeasurement class.

Volume

Volume is a quantity of the extend of matter in three dimensions. The SI accepted unit of volume is the liter (L), which is derived as one cubic decimeter (1 dm3). Volume is also commonly expressed in terms of cubic meters (m3), gallons (gal), and cups (cup).

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

Name

Method

Symbol

Coefficient

Megaliters

megaliters

ML

1000000.0

Kiloliters

kiloliters

kL

1000.0

Liters

liters

L

1.0

Deciliters

deciliters

dL

0.1

Centiliters

centiliters

cL

0.01

Milliliters

milliliters

mL

0.001

Cubic Kilometers

cubicKilometers

km³

1e12

Cubic Meters

cubicMeters

1000.0

Cubic Decimeters

cubicDecimeters

dm³

1.0

Cubic Millimeters

cubicMillimeters

mm³

0.000001

Cubic Inches

cubicInches

in³

0.0163871

Cubic Feet

cubicFeet

ft³

28.3168

Cubic Yards

cubicYards

yd³

764.555

Cubic Miles

cubicMiles

mi³

4.168e+12

Acre Foeet

acreFeet

af

1.233e+6

Bushels

bushels

bsh

35.2391

Teaspoons

teaspoons

tsp

0.00492892

Tablespoons

tablespoons

tbsp

0.0147868

Fluid Ounces

fluidOunces

fl oz

0.0295735

Cups

cups

cup

0.24

Pints

pints

pt

0.473176

Quarts

quarts

qt

0.946353

Gallons

gallons

gal

3.78541

Imperial Teaspoons

imperialTeaspoons

tsp

0.00591939

Imperial Tablespoons

imperialTablespoons

tbsp

0.0177582

Imperial Fluid Ounces

imperialFluidOunces

fl oz

0.0284131

Imperial Pints

imperialPints

pt

0.568261

Imperial Quarts

imperialQuarts

qt

1.13652

Imperial Gallons

imperialGallons

gal

4.54609

Metric Cups

metricCups

metric cup

0.25

Symbols

Accessing Predefined Units

class var megaliters: UnitVolume

Returns the megaliters unit of volume.

class var kiloliters: UnitVolume

Returns the kiloliters unit of volume.

class var liters: UnitVolume

Returns the liters unit of volume.

class var deciliters: UnitVolume

Returns the deciliters unit of volume.

class var centiliters: UnitVolume

Returns the centiliters unit of volume.

class var milliliters: UnitVolume

Returns the milliliters unit of volume.

class var cubicKilometers: UnitVolume

Returns the cubic kilometers unit of volume.

class var cubicMeters: UnitVolume

Returns the cubic meters unit of volume.

class var cubicDecimeters: UnitVolume

Returns the cubic decimeter unit of volume.

class var cubicCentimeters: UnitVolume

Returns the cubic centimeters unit of volume.

class var cubicMillimeters: UnitVolume

Returns the cubic millimeters unit of volume.

class var cubicInches: UnitVolume

Returns the cubic inches unit of volume.

class var cubicFeet: UnitVolume

Returns the cubic feet unit of volume.

class var cubicYards: UnitVolume

Returns the cubic yards unit of volume.

class var cubicMiles: UnitVolume

Returns the cubic miles unit of volume.

class var acreFeet: UnitVolume

Returns the acre feet unit of volume.

class var bushels: UnitVolume

Returns the bushels unit of volume.

class var teaspoons: UnitVolume

Returns the teaspoons unit of volume.

class var tablespoons: UnitVolume

Returns the tablespoons unit of volume.

class var fluidOunces: UnitVolume

Returns the fluid ounces unit of volume.

class var cups: UnitVolume

Returns the cups unit of volume.

class var pints: UnitVolume

Returns the pints unit of volume.

class var quarts: UnitVolume

Returns the quarts unit of volume.

class var gallons: UnitVolume

Returns the gallons unit of volume.

class var imperialTeaspoons: UnitVolume

Returns the imperial teaspoons unit of volume.

class var imperialTablespoons: UnitVolume

Returns the imperial tablespoons unit of volume.

class var imperialFluidOunces: UnitVolume

Returns the imperial fluid ounces unit of volume.

class var imperialPints: UnitVolume

Returns the imperial pints unit of volume.

class var imperialQuarts: UnitVolume

Returns the imperial quarts unit of volume.

class var imperialGallons: UnitVolume

Returns the imperial gallons unit of volume.

class var metricCups: UnitVolume

Returns the metric cups unit of volume.

Relationships

Inherits From

Conforms To