An Energy value represents an amount of energy (or work) in joules,
kilowatt hours etc. It is stored as a number of joules.
Note that since Joules is defined as Product Newtons Meters, you can compute
energy directly as a product of force and distance:
Force.newtons 5 |> Quantity.times (Length.meters 4)
--> Energy.joules 20Construct an energy value from a number of joules.
Convert an energy value to a number of joules.
Construct an energy value from a number of kilojoules.
Convert an energy value to a number of kilojoules.
Construct an energy value from a number of megajoules.
Convert an energy value to a number of megajoules.
Construct an energy value from a number of kilowatt hours.
Energy.kilowattHours 1
--> Energy.megajoules 3.6Convert an energy value to a number of kilowatt hours.