python round 2 precision code example Example: round off to two decimal places python format(1.4000,'.2f') #to include zeroes while rounding to 2 decimals