Skip to Content
Menu
This question has been flagged
2 Replies
3247 Rodiniai

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?

Portretas
Atmesti
Autorius 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

Portretas
Atmesti
Best Answer

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

Portretas
Atmesti
Autorius

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

Related Posts Replies Rodiniai Veikla
2
liep. 20
7775
4
kov. 16
5707
0
geg. 15
164
1
kov. 15
5970
1
kov. 15
6793