Hex Core JS
    Preparing search index...

    Function round

    • Rounds the given number to the nearest unit (e.g. 10, 1, 0.1).

      Parameters

      • value: number

        The number to round.

      • unit: number = 1

        The unit to round num to.

      Returns number