Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
2 Respostas
3857 Visualizações

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
Cancelar
Melhor resposta

you can use python's round() function

Avatar
Cancelar
Autor Melhor resposta

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

Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
2
out. 18
6652
0
ago. 22
2382
1
jul. 22
20074
0
abr. 22
3056
3
set. 21
3214