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

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



On Mon, Jul 08, 2024 at 02:07:20AM +0200, Daniele Nicolodi wrote:
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.

Ah I missed that point, thank you both for clarifying.

Cheers!


Reply to: