FA-84838 / Betting odds conversion / Member archive
Equivalent price rounded with binary floats or truncated · case 03
Laying at 17 shows 1.062 instead of 1.063.
Case contract
Laying a selection at price L (> 1, else "invalid") is equivalent to backing "not this selection" at L / (L - 1). After exchange commission c percent on winnings, the effective price is 1 + (equivalent - 1) * (100 - c) / 100. Return both, rounded half up to three decimals.
Why this case matters
Matched-betting and trading calculators compare lay prices with bookmaker back prices.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| boundary half-up third decimal | ["1.062", "1.062"] | ["1.063", "1.063"] | Failed |
MEMBER ARCHIVE
The complete case is available to members.
This record includes three runnable implementations, regression fixtures, execution results, and source hashes.
Member access is invitation-based. Sign in with your invited account to inspect the sources.
Sign in to the archive ↗