Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
3172 Vistas

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 Mejor respuesta

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
Mejor respuesta

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

Avatar
Descartar
Autor

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

Publicaciones relacionadas Respuestas Vistas Actividad
2
jul 20
7661
4
mar 16
5622
0
may 15
164
1
mar 15
5888
1
mar 15
6709