ianmackenzie/elm-units/1.0.0

NOTE: the latest version is 2.10.0

Charge

A Charge value represents an electrical charge in coulombs or ampere hours. It is stored as a number of coulombs.

type alias Charge =
coulombs : Float -> Charge

Construct a charge from a number of coulombs.

inCoulombs : Charge -> Float

Convert a charge to a number of coulombs.

ampereHours : Float -> Charge

Construct a charge from a number of ampere hours.

inAmpereHours : Charge -> Float

Convert a charge to a number of ampere hours.

milliampereHours : Float -> Charge

Construct a charge from a number of milliampere hours.

inMilliampereHours : Charge -> Float

Convert a charge to a number of milliampere hours.