Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odgovori
3886 Prikazi

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

you can use python's round() function

Avatar
Opusti
Avtor Best Answer

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

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
2
okt. 18
6671
0
avg. 22
2401
1
jul. 22
20103
0
apr. 22
3070
3
sep. 21
3240