DistanceConversionInfo

fun DistanceConversionInfo(    step: Double,     outputUnit: DistanceUnit,     skipDecimalPointIfWholeNumber: Boolean = false)

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.

Important: This is a Public Preview API. It may be changed or removed at any time.