İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
3885 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
6670
0
Ağu 22
2399
1
Tem 22
20102
0
Nis 22
3069
3
Eyl 21
3240