Recent Releases of fraction
fraction - Support for recurring decimal fractions
Now you can create fractions from recurring decimal numbers. ```
print(Fraction.fromdecimal(1.3, rec='3')) 4/3 ```
- Python
Published by bradley101 over 4 years ago
fraction - Support for string and decimal fractions
Now you can initialise a Fraction object using strings and decimals.
f1 = Fraction('1/3')
f2 = Fraction('1/2', '1/4')
f3 = Fraction(0.5, 0.25)
f4 = Fraction('0.5', '1/4')
All the combinations of strings, decimals and fractional strings are valid on both numerator and denominator.
Also now you can convert a Fraction object into a float string
```
Fraction('2/3').todecimal(decplaces=4) 0.6666 ```
- Python
Published by bradley101 almost 5 years ago
fraction - Bugfixes and improvements
Added a new useful constructor of type Fraction, Fraction
- Python
Published by bradley101 about 5 years ago