round down to 2 decimal in python

后端 未结 5 1401
我寻月下人不归
我寻月下人不归 2020-12-01 18:46

I need to round down and it should be two decimal places.
Tried the following,

a = 28.266
print round(a, 2)

28.27

<
5条回答
提交回复
热议问题