Fraction

Latest version: v2.2.0

Safety actively analyzes 687918 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

2.2.0

2.1.1

Now you can create fractions from recurring decimal numbers.

>>> print(Fraction.fromdecimal(1.3, rec='3'))
4/3

2.0.1

Now you can initialise a `Fraction` object using strings and decimals.

f1 = Fraction('1/3')
f2 = Fraction('1/2', '1/4')

1.5.1

Added a new useful constructor of type Fraction, Fraction

1.4.0

1.3.0

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.