Skip to Content
Menú
This question has been flagged
2 Respostes
3160 Vistes

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
Descartar
Autor 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
Descartar
Best Answer

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

Avatar
Descartar
Autor

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

Related Posts Respostes Vistes Activitat
2
de jul. 20
7642
4
de març 16
5618
0
de maig 15
164
1
de març 15
5882
1
de març 15
6702