[Tutor] precision handling

Msd De mmssdd1920 at gmail.com
Thu Sep 30 04:07:03 EDT 2021


Hello,
The two same numbers generated in python 2.7 when subtracted should give
zero. Instead it gives - 4.7393372903e-07.
The number are given below:

176697092.941 - 176697092.941 = - 4.7393372903e-07

How would I increase the precision for the whole document in python?
Thanks in advance.
Regards,


More information about the Tutor mailing list