[Tutor] Hoping for a brief explanation!
Peter Otten
__peter__ at web.de
Thu Aug 18 02:55:57 EDT 2022
On 17/08/2022 20:51, Oscar Benjamin wrote:
> On Wed, 17 Aug 2022 at 07:23, Peter Otten <__peter__ at web.de> wrote:
>> There is no numerical type that "just works" like you learned at school.
>
> There is Fraction which gives perfectly exact results for all of the
> examples presented in this thread.
Yes, I went over the top with my statement; Python's int-s are exact for
addition/subtraction/multiplication and Fraction-s extend that to division.
More information about the Tutor
mailing list