custom-card-helpers
    Preparing search index...

    Function formatNumber

    • Formats a number based on the specified language with thousands separator(s) and decimal character for better legibility.

      Parameters

      • num: string | number

        The number to format

      • OptionallocaleOptions: FrontendLocaleData
      • Optionaloptions: NumberFormatOptions

        Intl.NumberFormatOptions to use

      Returns string