[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#1075905: ITP: python-fraction -- Fraction carries out all the fraction operations including addition, subtraction, multiplication, division, reciprocation



On 08/07/24 01:47, Yogeswaran Umasankar wrote:
As I look further, it appears that standard Python libs such as float or
decimal.Decimal do not provide exact representation of rational numbers
(fractions) without potential loss of precision. Seems ‘fraction’
package yield exact results because those functions directly work on
fractions (to my limited understanding).

As I already pointed out, the Python standard libray has a `franctions` module https://docs.python.org/3/library/fractions.html which does exactly what the ITP package does.

Cheers,
Dan


Reply to: