Floating point problem

Aakash Jana aakashjana2002 at gmail.com
Fri Apr 17 07:14:43 EDT 2020


I am calculating couple of ratios and according to the problem there must
be a 6 decimal precision. But when I print the result I only get one 0.
E.g:- 2 / 5 = 0.400000 but I am only getting 0.4


More information about the Python-list mailing list