ianmackenzie / elm-units-prefixed / Units.Volume

A Volume represents a volume in cubic meters, cubic feet, liters, US liquid gallons, imperial fluid ounces etc. It is stored as a number of cubic meters.


type alias Volume =
Volume


type alias CubicMeters =
Volume.CubicMeters

Metric

cubicMeters : Basics.Float -> Volume

Construct a volume from a number of cubic meters.

inCubicMeters : Volume -> Basics.Float

Convert a volume to a number of cubic meters.

milliliters : Basics.Float -> Volume

Construct a volume from a number of milliliters.

inMilliliters : Volume -> Basics.Float

Convert a volume to a number of milliliters.

liters : Basics.Float -> Volume

Construct a volume from a number of liters.

inLiters : Volume -> Basics.Float

Convert a volume to a number of liters.

cubicCentimeters : Basics.Float -> Volume

Construct a volume from a number of cubic centimeters. Alias for milliliters.

inCubicCentimeters : Volume -> Basics.Float

Convert a volume to a number of cubic centimeters. Alias for inMilliliters.

Imperial

cubicInches : Basics.Float -> Volume

Construct a volume from a number of cubic inches.

inCubicInches : Volume -> Basics.Float

Convert a volume to a number of cubic inches.

cubicFeet : Basics.Float -> Volume

Construct a volume from a number of cubic feet.

inCubicFeet : Volume -> Basics.Float

Convert a volume to a number of cubic feet.

cubicYards : Basics.Float -> Volume

Construct a volume from a number of cubic yards.

inCubicYards : Volume -> Basics.Float

Convert a volume to a number of cubic yards.

usLiquidGallons : Basics.Float -> Volume

Construct a volume from a number of U.S. liquid gallon.

inUsLiquidGallons : Volume -> Basics.Float

Convert a volume to a number of U.S. liquid gallons.

usDryGallons : Basics.Float -> Volume

Construct a volume from a number of U.S. dry gallons.

inUsDryGallons : Volume -> Basics.Float

Convert a volume to a number of U.S. dry gallons.

imperialGallons : Basics.Float -> Volume

Construct a volume from a number of imperial gallons.

inImperialGallons : Volume -> Basics.Float

Convert a volume to a number of imperial gallons.

usLiquidQuarts : Basics.Float -> Volume

Construct a volume from a number of U.S. liquid quarts.

inUsLiquidQuarts : Volume -> Basics.Float

Convert a volume to a number of U.S. liquid quarts.

usDryQuarts : Basics.Float -> Volume

Construct a volume from a number of U.S. dry quarts.

inUsDryQuarts : Volume -> Basics.Float

Convert a volume to a number of U.S. dry quarts.

imperialQuarts : Basics.Float -> Volume

Construct a volume from a number of imperial quarts.

inImperialQuarts : Volume -> Basics.Float

Convert a volume to a number of imperial quarts.

usLiquidPints : Basics.Float -> Volume

Construct a volume from a number of U.S. liquid pints.

inUsLiquidPints : Volume -> Basics.Float

Convert a volume to a number of U.S. liquid pints.

usDryPints : Basics.Float -> Volume

Construct a volume from a number of U.S. dry pints.

inUsDryPints : Volume -> Basics.Float

Convert a volume to a number of U.S. dry pints.

imperialPints : Basics.Float -> Volume

Construct a volume from a number of imperial pints.

inImperialPints : Volume -> Basics.Float

Convert a volume to a number of imperial pints.

usFluidOunces : Basics.Float -> Volume

Construct a volume from a number of U.S. fluid ounces.

inUsFluidOunces : Volume -> Basics.Float

Convert a volume to a number of U.S. fluid ounces.

imperialFluidOunces : Basics.Float -> Volume

Construct a volume from a number of imperial fluid ounces.

inImperialFluidOunces : Volume -> Basics.Float

Convert a volume to a number of imperial fluid ounces.

Constants

Shorthand for Volume.cubicMeters 1, Volume.imperialGallons 1 etc. Can be convenient to use with Quantity.per.

cubicMeter : Volume

milliliter : Volume

liter : Volume

cubicCentimeter : Volume

cubicInch : Volume

cubicFoot : Volume

cubicYard : Volume

usLiquidGallon : Volume

usDryGallon : Volume

imperialGallon : Volume

usLiquidQuart : Volume

usDryQuart : Volume

imperialQuart : Volume

usLiquidPint : Volume

usDryPint : Volume

imperialPint : Volume

usFluidOunce : Volume

imperialFluidOunce : Volume