📅  最后修改于: 2022-03-11 14:45:48.668000             🧑  作者: Mango
floatNumber = 2.13400
#Method 1: use f-strings
print(f"{floatNumber:.5f}") #Output: 2.13400
#Method 2: use round
print(round(floatNumber,5)) #Output: 2.134