DistanceConversionInfo

data class DistanceConversionInfo(val step: Double, val outputUnit: Distance.Unit, val skipDecimalPointIfWholeNumber: Boolean = false)

Defines details how Distance should be converted for a given DistanceFormattingRange.

Parameters

step

Describes the conversion precision.

outputUnit

Defines the output unit for a given DistanceFormattingRange.

skipDecimalPointIfWholeNumber

Defines if a formatter should omit the decimal point for a given range. If set to true values such as 1.0 would be formatted as 1.

Constructors

Link copied to clipboard
constructor(step: Double, outputUnit: Distance.Unit, skipDecimalPointIfWholeNumber: Boolean = false)

Properties

Link copied to clipboard
Link copied to clipboard