ianmackenzie / elm-units-prefixed / Units.Resistance

A Resistance value represents an electrical resistance in ohms.

Note that since Ohms is defined as Rate Volts Amperes (voltage per unit current), you can construct a Resistance value using Quantity.per:

resistance =
    voltage |> Quantity.per current

You can also do rate-related calculations with Resistance values to compute Voltage or Current:

voltage =
    current |> Quantity.at resistance

current =
    voltage |> Quantity.at_ resistance


type alias Resistance =
Resistance


type alias Ohms =
Resistance.Ohms

ohms : Basics.Float -> Resistance

Construct a resistance from a number of ohms.

inOhms : Resistance -> Basics.Float

Convert a resistance to a number of ohms.