Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odgovori
3226 Prikazi

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
Opusti
Avtor 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
Opusti
Best Answer

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

Avatar
Opusti
Avtor

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

Related Posts Odgovori Prikazi Aktivnost
2
jul. 20
7730
4
mar. 16
5679
0
maj 15
164
1
mar. 15
5947
1
mar. 15
6750