Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
3855 Visualizzazioni

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
Abbandona
Risposta migliore

you can use python's round() function

Avatar
Abbandona
Autore Risposta migliore

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

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
ott 18
6650
0
ago 22
2380
1
lug 22
20073
0
apr 22
3052
3
set 21
3206