跳至内容
菜单
此问题已终结
2 回复
3836 查看

I have a float field and i can calculate amount within this field. I want that amount should show in round figure. For eg. when price is 64.80 then it updated to 65 and if price 64.40 then it updated to 64. So, what solution i could use?
Thanks in advance.

形象
丢弃
最佳答案

you can use python's round() function

形象
丢弃
编写者 最佳答案

Problem solved by just using 'round'. For eg. round(amount).
Thanks.

形象
丢弃
相关帖文 回复 查看 活动
2
10月 18
6626
0
8月 22
2333
1
7月 22
20015
0
4月 22
2978
3
9月 21
3176