Skip to Content
Menu
This question has been flagged
2 Replies
3917 Rodiniai

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.

Portretas
Atmesti
Best Answer

you can use python's round() function

Portretas
Atmesti
Autorius Best Answer

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

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
2
spal. 18
6728
0
rugp. 22
2433
1
liep. 22
20154
0
bal. 22
3096
3
rugs. 21
3261