Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
2 Besvarelser
3909 Visninger

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
Kassér
Bedste svar

you can use python's round() function

Avatar
Kassér
Forfatter Bedste svar

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

Avatar
Kassér
Related Posts Besvarelser Visninger Aktivitet
2
okt. 18
6676
0
aug. 22
2407
1
jul. 22
20120
0
apr. 22
3076
3
sep. 21
3243