İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
4061 Görünümler

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
Vazgeç
En İyi Yanıt

you can use python's round() function

Avatar
Vazgeç
Üretici En İyi Yanıt

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

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
2
Eki 18
6938
0
Ağu 22
2610
1
Tem 22
20402
0
Nis 22
3227
3
Eyl 21
3389