Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
4080 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
6979
0
ago 22
2663
1
lug 22
20423
0
apr 22
3248
3
set 21
3418