@squawk
    Preparing search index...

    Function formatSpeed

    • Formats a speed value with its unit label. For Mach numbers, the value is formatted as "M0.82". For all other units the value and unit are separated by a space.

      Default precision:

      • 'mach': 2 decimal places
      • 'kt', 'mph': 0 decimal places
      • 'km/h', 'm/s': 0 decimal places

      Parameters

      • value: number

        Speed value in the given unit.

      • unit: FormatSpeedUnit

        The speed unit to display.

      • Optionaloptions: FormatOptions

        Optional formatting overrides.

      Returns string

      Formatted speed string such as "250 kt" or "M0.82".