Function roundTo

  • check if value rounds to target

    Parameters

    • actual: number
    • expected: number
    • Optionaldecimals: number

      number of decimals to round to, defaults to 0

    Returns void

    roundTo(1.234, 1.23, 2);