Function niceRound

  • Rounds a number to it's nearest 'nice' number, e.g. rounds 0.30000000000000004 to 0.3

    Returns

    the number rounded to the nearest 'nice' number

    Parameters

    • n: number

      a number

    Returns number

Generated using TypeDoc