Chalkboard - v3.0.1
    Preparing search index...

    Function roundTo

    • Rounds a number to the nearest positional notation index (or the nearest place value).

      Parameters

      • num: number

        Number

      • positionalIndex: number

        The positional notation index (or place value)

      Returns number

      // Returns 1240
      const rounded = Chalkboard.numb.roundTo(1237, 10);