Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
3209 Vizualizări

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?

Imagine profil
Abandonează
Autor Cel mai bun răspuns

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

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Autor

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

Related Posts Răspunsuri Vizualizări Activitate
2
iul. 20
7700
4
mar. 16
5660
0
mai 15
164
1
mar. 15
5904
1
mar. 15
6728