Contents

UnitVolume

A unit of measure for volume.

Declaration

class UnitVolume

Overview

You typically use instances of UnitVolume 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 UnitVolume class defines its baseUnit() 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 Centimeters

Cubiccentimeters

cm³

0.001

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 Feet

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

Accessing Predefined Units

Initializers

See Also

Physical Dimension