Exact Odds Conversion in Python: Decimal, Fractional and American Odds with Fractions and Property-Based Tests
Odds arrive in three formats: decimal (2.50), fractional (3/2) and American (+150). Converting between them looks like a one-liner, but the naive float version quietly drifts. -110 becomes 1.909090909