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
3826 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
6620
0
sie 22
2326
1
lip 22
20010
0
kwi 22
2975
3
wrz 21
3165