FAILURE MAP
← Case archive

FA-84464 / Betting odds conversion / Member archive

Negative Asian prices rounded toward positive infinity · case 04

A -0.125 Malay price shows "-1.88" or "-0.12" instead of "-0.13".

Member previewVariant 4 · 3 implementations · 10 checks per implementation

Case contract

Convert a decimal price (> 1, else "invalid") to an Asian odds style. hk: d - 1. malay: d - 1 when d <= 2, else -1 / (d - 1). indo: d - 1 when d >= 2, else -1 / (d - 1). Other styles return "invalid style". Values are rounded half away from zero to two decimals and formatted with a leading "-" for negatives.

Why this case matters

Asian-facing sportsbooks show Hong Kong, Malay and Indonesian prices with sign conventions.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
control malay negative"-1.20""-0.80"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 ↗