Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
3856 Представления

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.

Аватар
Отменить
Лучший ответ

you can use python's round() function

Аватар
Отменить
Автор Лучший ответ

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

Аватар
Отменить
Related Posts Ответы Просмотры Активность
2
окт. 18
6650
0
авг. 22
2381
1
июл. 22
20074
0
апр. 22
3056
3
сент. 21
3211