Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
3820 Zobrazení

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šit
Nejlepší odpověď

you can use python's round() function

Avatar
Zrušit
Autor Nejlepší odpověď

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

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
říj 18
6616
0
srp 22
2321
1
čvc 22
20008
0
dub 22
2974
3
zář 21
3163