FAILURE MAP
← Case archive

FA-84459 / Betting odds conversion / Member archive

Negative Malay price computed as negated profit · case 04

A 2.25 price shows -1.25 instead of -0.80 in Malay format.

Member previewVariant 4 · 3 implementations · 9 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.25""-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 ↗