Skip to Content
मेन्यू
This question has been flagged
2 Replies
3808 Views

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
Discard
Best Answer

you can use python's round() function

Avatar
Discard
Author Best Answer

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

Avatar
Discard
Related Posts Replies Views Activity
2
अक्तू॰ 18
6599
0
अग॰ 22
2285
1
जुल॰ 22
19990
0
अप्रैल 22
2961
3
सित॰ 21
3147