FAILURE MAP
← Case archive

FA-84379 / Betting odds conversion / Member archive

Whole-number fractional odds rendered without denominator · case 04

Even money shows "1" instead of "1/1" and unreduced forms leak through.

Member previewVariant 4 · 3 implementations · 10 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 underdog["2.50", "150/100", "40.0"]["2.50", "3/2", "40.0"]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 ↗