Floating point problem

ast ast at invalid
Fri Apr 17 08:52:37 EDT 2020


Le 17/04/2020 à 13:40, Aakash Jana a écrit :

> I am running python 3.8 only but my issue is I need more zeroes after my
> result.
> I want 2/5 = 0.400000
> But I am only getting 0.4

f"{2/5:.6f}"
'0.400000'



More information about the Python-list mailing list