torque-pro-assistant - v1.0.0
    Preparing search index...
    • Format a distance for display in the active units mode. Stored values throughout the app are in miles (the dominant Torque Pro export unit); this is the conversion / unit suffix layer.

      Parameters

      • miles: number

        Distance in miles.

      • units: UnitsPreference

        Active units preference.

      • decimals: number = 1

        Decimals after the point. Defaults to 1.

      Returns string

      A pre-formatted distance string like "124.6 mi" or "200.5 km".