ianmackenzie/elm-units/2.7.0

NOTE: the latest version is 2.10.0

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 =
Quantity Float CubicMeters
type alias CubicMeters =
Cubed Meters

Metric

cubicMeters : Float -> Volume

Construct a volume from a number of cubic meters.

inCubicMeters : Volume -> Float

Convert a volume to a number of cubic meters.

milliliters : Float -> Volume

Construct a volume from a number of milliliters.

inMilliliters : Volume -> Float

Convert a volume to a number of milliliters.

liters : Float -> Volume

Construct a volume from a number of liters.

inLiters : Volume -> Float

Convert a volume to a number of liters.

Imperial

cubicInches : Float -> Volume

Construct a volume from a number of cubic inches.

inCubicInches : Volume -> Float

Convert a volume to a number of cubic inches.

cubicFeet : Float -> Volume

Construct a volume from a number of cubic feet.

inCubicFeet : Volume -> Float

Convert a volume to a number of cubic feet.

cubicYards : Float -> Volume

Construct a volume from a number of cubic yards.

inCubicYards : Volume -> Float

Convert a volume to a number of cubic yards.

usLiquidGallons : Float -> Volume

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

inUsLiquidGallons : Volume -> Float

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

usDryGallons : Float -> Volume

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

inUsDryGallons : Volume -> Float

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

imperialGallons : Float -> Volume

Construct a volume from a number of imperial gallons.

inImperialGallons : Volume -> Float

Convert a volume to a number of imperial gallons.

usLiquidQuarts : Float -> Volume

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

inUsLiquidQuarts : Volume -> Float

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

usDryQuarts : Float -> Volume

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

inUsDryQuarts : Volume -> Float

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

imperialQuarts : Float -> Volume

Construct a volume from a number of imperial quarts.

inImperialQuarts : Volume -> Float

Convert a volume to a number of imperial quarts.

usLiquidPints : Float -> Volume

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

inUsLiquidPints : Volume -> Float

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

usDryPints : Float -> Volume

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

inUsDryPints : Volume -> Float

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

imperialPints : Float -> Volume

Construct a volume from a number of imperial pints.

inImperialPints : Volume -> Float

Convert a volume to a number of imperial pints.

usFluidOunces : Float -> Volume

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

inUsFluidOunces : Volume -> Float

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

imperialFluidOunces : Float -> Volume

Construct a volume from a number of imperial fluid ounces.

inImperialFluidOunces : Volume -> 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
cubicInch : Volume
cubicFoot : Volume
cubicYard : Volume
usDryGallon : Volume
usLiquidQuart : Volume
usDryQuart : Volume
imperialQuart : Volume
usLiquidPint : Volume
usDryPint : Volume
imperialPint : Volume
usFluidOunce : Volume