Skip to Content
Menu
This question has been flagged
2 Replies
3207 Zobrazenia

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?

Avatar
Zrušiť
Autor Best Answer

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

Avatar
Zrušiť
Best Answer

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

Avatar
Zrušiť
Autor

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

Related Posts Replies Zobrazenia Aktivita
2
júl 20
7696
4
mar 16
5659
0
máj 15
164
1
mar 15
5904
1
mar 15
6728