DoubleExtension extension
An extension for the double
class providing convenient methods for formatting distances and weights.
- on
Properties
- cToDistance → String
-
Available on double, provided by the DoubleExtension extension
Converts a numeric value in meters to a human-readable distance representation with the appropriate unit (meters or kilometers).no setter - cToWeight → String
-
Available on double, provided by the DoubleExtension extension
Converts a numeric value in grams to a human-readable weight representation with the appropriate unit (grams or kilograms).no setter