A Mass represents a mass in kilograms, pounds, metric or imperial tons
etc. It is stored as a number of kilograms.
Construct a mass from a number of kilograms.
Convert a mass to a number of kilograms.
Construct a mass from a number of grams.
Convert a mass to a number of grams.
Construct a mass from a number of metric tons.
Mass.metricTons 1
--> Mass.kilograms 1000Convert a mass to a number of metric tons.
Construct a mass from a number of pounds.
Convert a mass to a number of pounds.
Construct a mass from a number of ounces.
Convert a mass to a number of ounces.
Mass.pounds 1 |> Mass.inOunces
--> 16Construct a mass from a number of long tons. This is the 'ton' commonly used in the United Kingdom and British Commonwealth.
Mass.longTons 1
--> Mass.pounds 2240Convert a mass to a number of long tons.
Construct a mass from a number of short tons. This is the 'ton' commonly used in the United States.
Mass.shortTons 1
--> Mass.pounds 2000Convert a mass to a number of short tons.