ts-data-forge
    Preparing search index...

    Function roundAt

    • Rounds a number to a specified number of decimal places.

      Uses the standard rounding algorithm (round half up) to round the number to the given precision. The precision must be a positive safe integer.

      Parameters

      • num: number

        The number to round

      • precision: PositiveSafeIntWithSmallInt

        The number of decimal places (must be positive)

      Returns number

      The rounded number