Weight
A quantity describing weight. (For example, 10 kilograms.)
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 rounded down.
Expresses the weight's value in kilograms rounded down.
Expresses the weight's value in long tons rounded down.
Expresses the weight's value in metric tons rounded down.
Expresses the weight's value in ounces rounded down.
Expresses the weight's value in pounds rounded down.
Expresses the weight's value in short tons rounded down.
Expresses the weight's value in troy ounces rounded down.
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.