Se rendre au contenu
Menu
Cette question a été signalée
2 Réponses
3852 Vues

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
Ignorer
Meilleure réponse

you can use python's round() function

Avatar
Ignorer
Auteur Meilleure réponse

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

Avatar
Ignorer
Publications associées Réponses Vues Activité
2
oct. 18
6644
0
août 22
2378
1
juil. 22
20067
0
avr. 22
3046
3
sept. 21
3198