FAILURE MAP
← Case archive

FA-84719 / Betting odds conversion / Member archive

Breakage rounds dividends to the nearest or next dime · case 04

A 2.8267 dividend is paid as 2.90 or rounded to 2.80 only sometimes.

Member previewVariant 4 · 3 implementations · 9 checks per implementation

Case contract

Pari-mutuel win dividend per unit stake. The net pool is pool * (100 - takeout_pct) / 100; with a dead heat it is split equally among the winning runners. Each runner's dividend is its share divided by the stakes on it, broken down to the 10-cent step below (breakage), with a minimum of 1.10. A winner with no stakes gets None. Return dividends as "D.D0" strings in winners order.

Why this case matters

Tote operators compute dividends with takeout, breakage and minimum-dividend rules.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
regression: breakage direction[null, "2.70", "4.50"][null, "2.70", "4.40"]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 ↗