print two digits after decimal python

48

print two digits after decimal python -

float = 2.154327
format_float = "{:.2f}".format(float)
print(format_float)

Comments

Submit
0 Comments