Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
3850 Vizualizări

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.

Imagine profil
Abandonează
Cel mai bun răspuns

you can use python's round() function

Imagine profil
Abandonează
Autor Cel mai bun răspuns

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

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
2
oct. 18
6642
0
aug. 22
2375
1
iul. 22
20063
0
apr. 22
3043
3
sept. 21
3198