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