Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
3227 Переглядів

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
7740
4
бер. 16
5687
0
трав. 15
164
1
бер. 15
5950
1
бер. 15
6756