Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
4083 Widoki

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.

Awatar
Odrzuć
Najlepsza odpowiedź

you can use python's round() function

Awatar
Odrzuć
Autor Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
paź 18
6984
0
sie 22
2668
1
lip 22
20428
0
kwi 22
3256
3
wrz 21
3422