FAILURE MAP
← Case archive

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.

Member previewVariant 3 · 3 implementations · 8 checks per implementation

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 fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
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 ↗