samedi 30 juillet 2016

can't get rid of 1e-5 while formatting in python 3 programming

I am creating a length calculator and need to format it so it doesn't show 1e-5 from going to mm to km. i have tried '{:.6}'.format() but doesn't seem to work as still outputs it as 1e-5.

Any help on what to do to get rid of this?

Aucun commentaire:

Enregistrer un commentaire