---
title: "Discussion on \"Exact Odds Conversion in Python: Decimal, Fractional and American Odds with Fractions and Property-Based Tests\" | Hashnode"
description: "Discussion on \"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"
url: "https://hashnode.com/posts/exact-odds-conversion-in-python-decimal-fractional-and-american-odds-with-fractions-and-property-based-tests/6b1282b72167d1cf120debc4"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Exact Odds Conversion in Python: Decimal, Fractional and American Odds with Fractions and Property-Based Tests](https://pinnacleterminal.hashnode.dev/exact-odds-conversion-in-python-decimal-fractional-and-american-odds-with-fractions-and-property-based-tests?utm_source=hashnode&utm_medium=feed)

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

9h ago · 7 min read · pinnacleterminal.hashnode.dev  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#testing](https://hashnode.com/tag/testing)
-   [#math](https://hashnode.com/tag/math)
-   [#hypothesis](https://hashnode.com/tag/hypothesis)

## Written by

[Pinnacle Terminal](https://hashnode.com/@pinnacleterminal)

@pinnacleterminal · Madrid, Spain

  
[View profile](https://hashnode.com/@pinnacleterminal)

Odds maths and Python notes from the Pinnacle Terminal team: devig, expected value and closing line value, with worked examples.

Odds maths and Python notes from the Pinnacle Terminal team: devig, expected value and closing line value, with worked examples.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
