System Documentation
    Preparing search index...
    • Rounds a number to a number of significant digits, half up, on the digits of its shortest decimal notation: 1.2345675 gives 1.234568 for 7 digits. (toPrecision rounds the binary value that is behind it, which can give 1.234567.) This is how the tables have always shown the statistics.

      Parameters

      • value: number
      • digits: number

      Returns number