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

I imported bank statements by default import from csv file.

In the file the amount is -20.58 but in database I see -20.580000000000002.

What's wrong with numbers in Odoo?

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

As I understand this is due to float type used for numbers.

Float type is not precise!!!

Details are here https://docs.python.org/2/tutorial/floatingpoint.html

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

use widget="integer" ..........

Аватар
Отменить
Автор

It's like a makeup, numbers are still not precise.

Related Posts Ответы Просмотры Активность
2
июл. 20
7700
4
мар. 16
5660
0
мая 15
164
1
мар. 15
5904
1
мар. 15
6728