python float 1 decimal point code example Example: python float to 2 decimals newFloat = round(float, 2)