how to take float value upto 1 decimal places python code example Example: python float to 2 decimals newFloat = round(float, 2)