@squawk
    Preparing search index...

    Function formatTemperature

    • Formats a temperature value with its unit symbol. Optionally appends the ISA deviation when showISADeviation is true and altitudeFt is provided.

      The ISA deviation is the difference between the given temperature and the ISA standard temperature at the specified altitude, rounded to the nearest whole degree. Displayed as "(+5 ISA)" or "(-3 ISA)".

      Default precision: 0 decimal places for all units (aviation weather uses integers).

      Parameters

      • value: number

        Temperature value in the given unit.

      • unit: TemperatureUnit

        The temperature unit to display ('C', 'F', or 'K').

      • Optionaloptions: FormatTemperatureOptions

        Optional formatting and ISA deviation options.

      Returns string

      Formatted temperature string such as "15°C" or "15°C (+5 ISA)".