Format float to 3 decimal places python July 8, 2019 16 32 64 128 Python 3 format float to 2 decimal places