FAILURE MAP
← Case archive

FA-84370 / Betting odds conversion / Member archive

Negative moneyline profit computed from the wrong ratio · case 05

A -200 favourite is expanded as a 3.00 decimal price.

Member previewVariant 5 · 3 implementations · 9 checks per implementation

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 fixture

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

Boundary fixtureActualExpectedOutcome
control favourite["3.00", "2/1", "66.7"]["1.50", "1/2", "66.7"]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 ↗