Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
4333 Tampilan

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
Buang
Jawaban Terbai

you can use python's round() function

Avatar
Buang
Penulis Jawaban Terbai

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

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
2
Okt 18
7232
0
Agu 22
3073
1
Jul 22
20849
0
Apr 22
3612
3
Sep 21
3842