Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
3811 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
6601
0
ago 22
2287
1
jul 22
19993
0
abr 22
2963
3
sept 21
3149