Class

NSUnitVolume

A unit of measure for volume.

Declaration

@interface NSUnitVolume : NSDimension

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 NSUnitConverterLinear 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

Topics

Accessing the Base Unit

+ baseUnit

Returns the base unit of volume. Equal to liters.

Accessing Predefined Units

megaliters

Returns the megaliters unit of volume.

kiloliters

Returns the kiloliters unit of volume.

liters

Returns the liters unit of volume.

deciliters

Returns the deciliters unit of volume.

centiliters

Returns the centiliters unit of volume.

milliliters

Returns the milliliters unit of volume.

cubicKilometers

Returns the cubic kilometers unit of volume.

cubicMeters

Returns the cubic meters unit of volume.

cubicDecimeters

Returns the cubic decimeter unit of volume.

cubicCentimeters

Returns the cubic centimeters unit of volume.

cubicMillimeters

Returns the cubic millimeters unit of volume.

cubicInches

Returns the cubic inches unit of volume.

cubicFeet

Returns the cubic feet unit of volume.

cubicYards

Returns the cubic yards unit of volume.

cubicMiles

Returns the cubic miles unit of volume.

acreFeet

Returns the acre feet unit of volume.

bushels

Returns the bushels unit of volume.

teaspoons

Returns the teaspoons unit of volume.

tablespoons

Returns the tablespoons unit of volume.

fluidOunces

Returns the fluid ounces unit of volume.

cups

Returns the cups unit of volume.

pints

Returns the pints unit of volume.

quarts

Returns the quarts unit of volume.

gallons

Returns the gallons unit of volume.

imperialTeaspoons

Returns the imperial teaspoons unit of volume.

imperialTablespoons

Returns the imperial tablespoons unit of volume.

imperialFluidOunces

Returns the imperial fluid ounces unit of volume.

imperialPints

Returns the imperial pints unit of volume.

imperialQuarts

Returns the imperial quarts unit of volume.

imperialGallons

Returns the imperial gallons unit of volume.

metricCups

Returns the metric cups unit of volume.

Relationships

Inherits From

Conforms To

See Also

Physical Dimension

NSUnitArea

A unit of measure for area.

NSUnitLength

A unit of measure for length.

NSUnitAngle

A unit of measure for rotation.