Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
4052 Vistas

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
Descartar
Mejor respuesta

you can use python's round() function

Avatar
Descartar
Autor Mejor respuesta

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

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
2
oct 18
6916
0
ago 22
2604
1
jul 22
20392
0
abr 22
3222
3
sept 21
3388