Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
2 Besvarelser
3245 Visninger

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
Kassér
Forfatter Bedste svar

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
Kassér
Bedste svar

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

Avatar
Kassér
Forfatter

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

Related Posts Besvarelser Visninger Aktivitet
2
jul. 20
7775
4
mar. 16
5707
0
maj 15
164
1
mar. 15
5970
1
mar. 15
6793