Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
2 Antworten
3911 Ansichten

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
Verwerfen
Beste Antwort

you can use python's round() function

Avatar
Verwerfen
Autor Beste Antwort

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

Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
2
Okt. 18
6678
0
Aug. 22
2422
1
Juli 22
20136
0
Apr. 22
3089
3
Sept. 21
3246