Skip to Content
Menu
This question has been flagged
2 Replies
3159 Views

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
Discard
Author 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
Discard
Best Answer

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

Avatar
Discard
Author

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

Related Posts Replies Views Activity
2
Jul 20
7642
4
Mar 16
5618
0
May 15
164
1
Mar 15
5882
1
Mar 15
6702