Probability fractions not reduced in Python versions anterior to 3.9

Issue #84 resolved
Pierre Denis repo owner created an issue

When Lea is installed in Python versions up to 3.8, the probability fractions are not always reduced to the smallest common, denominator:

lea.event("1/3").times(2)
# -> 0 : 36/81
#    1 : 36/81
#    2 :  9/81

although, we could expect

# -> 0 : 4/9
#    1 : 4/9
#    2 : 1/9

as it is the case for Python 3.9+.

Comments (7)

  1. Log in to comment