Python float à la chaîne n décimales
float = 2.154327
format_float = "{:.2f}".format(float) # change .2f to n digits you want
print(format_float)
Cruel Crane
float = 2.154327
format_float = "{:.2f}".format(float) # change .2f to n digits you want
print(format_float)