Truncate to three decimals in Python

You can use an additional float() around it if you want to preserve it as a float.

%.3f'%(1324343032.324325235)

Leave a Comment