Chok’s Typescript Utilities
    Preparing search index...

    Function roundToString

    • Returns a string with the number in the exact number of decimal places specified, in case the number ends with zeroes, and adding commas for each group of 3 significant digits.

      Parameters

      • n: number
      • numDecimalPlaces: number = 0

      Returns string