Skip to Content
Menu
This question has been flagged
2 Replies
3853 Zobrazenia

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.

Avatar
Zrušiť
Best Answer

you can use python's round() function

Avatar
Zrušiť
Autor Best Answer

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

Avatar
Zrušiť
Related Posts Replies Zobrazenia Aktivita
2
okt 18
6648
0
aug 22
2378
1
júl 22
20071
0
apr 22
3047
3
sep 21
3200