İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
3831 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
6623
0
Ağu 22
2329
1
Tem 22
20010
0
Nis 22
2975
3
Eyl 21
3169