Function subtractionWithLimit

  • Will subtract 2 numbers with a given limit. If that limit would've been undershot by the subtraction, the limit is returned.

    Returns

    returns the subtraction if it didn't undershot the limit, else the limit will be returned.

    Parameters

    • limit: number

      the maximum number to be returned of subtraction

    • a: number

      number to be subtracted from

    • b: number

      number to subtract.

    Returns number

Generated using TypeDoc