FAILURE MAP
← Case archive

FA-84678 / Betting odds conversion / Member archive

Unsigned 100 read as a decimal price · case 03

Typing "100" produces a 100.00 decimal price instead of even money.

Member previewVariant 3 · 3 implementations · 10 checks per implementation

Case contract

Normalise user-typed odds to a decimal price string with two decimals (half up). Detection order: text containing "/" is fractional a/b; text starting with "+" or "-" is American (magnitude >= 100); an unsigned integer >= 100 is a positive American line; anything else is a decimal price, where a comma is the decimal separator ("2,50"). Unparseable input, zero denominators, magnitudes below 100 and results not above 1 return "invalid".

Why this case matters

Bet-slip inputs accept several odds formats and must not misclassify ambiguous text.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
boundary unsigned hundred"100.00""2.00"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 ↗