Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
3219 Visualizzazioni

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
Abbandona
Autore Risposta migliore

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
Abbandona
Risposta migliore

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

Avatar
Abbandona
Autore

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

Post correlati Risposte Visualizzazioni Attività
2
lug 20
7717
4
mar 16
5672
0
mag 15
164
1
mar 15
5936
1
mar 15
6746