• Parameters

    • n: number

      the number to be formatted

    • Optionald: number

      number of decimal places

    • Optionallocale: string

    Returns string

    format number based on selected region and specified decimal length