FAILURE MAP
← Case archive

FA-84427 / Betting odds conversion / Member archive

Negative overround formatted with floor-division digits · case 02

An under-round book shows "-1.99" style garbage instead of "-0.01".

Member previewVariant 2 · 3 implementations · 8 checks per implementation

Case contract

Market book analysis for decimal prices (strings, each > 1, else "invalid"). Implied probability is 1/d; book = sum of implied probabilities. Return [overround percent (book - 1) * 100, bookmaker margin percent (1 - 1/book) * 100, fair prices d * book for proportional margin removal], every number rounded half up to two decimals (negative values are rounded toward +infinity at the half) and formatted with two decimals.

Why this case matters

Trading tools report overround and margin separately and derive no-vig fair prices.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
regression: negative format["-3.92", "-3.88", ["2.64", "2.79", "16.89", "4.90"]]["-2.08", "-2.12", ["2.64", "2.79", "16.89", "4.90"]]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 ↗