IFClite TypeScript API
    Preparing search index...

    Function boundedPassRate

    • The one pass-percentage rounding rule (#6470).

      A bare Math.floor(passed / total * 100) reads 0% for 70 of 7,972 passing (0.9%) and 100% for 9,999 of 10,000, both of which tell a reader something false: "nothing passes" / "nothing fails". A partial result is therefore kept strictly inside 1..99. No entities to measure reads 100, the same convention calculateSummary always used.

      Parameters

      • passed: number
      • total: number

      Returns number