Skip to Content
Menú
This question has been flagged
2 Respostes
3807 Vistes

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
Descartar
Best Answer

you can use python's round() function

Avatar
Descartar
Autor Best Answer

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

Avatar
Descartar
Related Posts Respostes Vistes Activitat
2
d’oct. 18
6599
0
d’ag. 22
2285
1
de jul. 22
19990
0
d’abr. 22
2961
3
de set. 21
3147