跳至內容
選單
此問題已被標幟
2 回覆
3924 瀏覽次數

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
6746
0
8月 22
2434
1
7月 22
20155
0
4月 22
3096
3
9月 21
3261