FA-84383 / Betting odds conversion / Member archive
Decimal price rounded with binary floats or truncated · case 03
A -800 line shows 1.12 instead of 1.13.
Case contract
Expand an American moneyline ("+150", "150" or "-200"; magnitude at least 100, otherwise "invalid"). Profit per unit is N/100 for positive or unsigned lines and 100/N for negative lines. Return [decimal price with two decimals, reduced fractional profit "a/b", implied probability percent with one decimal], all computed exactly and rounded half up.
Why this case matters
Odds screens show American, decimal, fractional and implied-probability columns for one price.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| control half-up decimal | ["1.12", "1/8", "88.9"] | ["1.13", "1/8", "88.9"] | 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 ↗