Weight
A quantity describing weight. (For example, 10 kilograms.)
Important: This is a Public Preview API. It may be changed or removed at any time.
Types
Functions
Expresses the weight's value in kilograms.
Expresses the weight's value in long tons.
Expresses the weight's value in metric tons.
Expresses the weight's value in short tons.
Expresses the weight's value in troy ounces.
Expresses the weight's value in grams.
Expresses the weight's value in kilograms.
Expresses the weight's value in long tons.
Expresses the weight's value in metric tons.
Expresses the weight's value in ounces.
Expresses the weight's value in pounds.
Expresses the weight's value in short tons.
Expresses the weight's value in troy ounces.
Returns a string representation for the value from this
with the given unit. Depending on decimalsMode, it will show either exactly or at most decimals amount of decimals after the separator. The unit will be suffixed depending on suffixMode.
Returns a new instance with the value from this
as negative.