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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)