Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
2 Respostas
3240 Visualizações

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
Cancelar
Autor Melhor resposta

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
Cancelar
Melhor resposta

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

Avatar
Cancelar
Autor

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

Publicações relacionadas Respostas Visualizações Atividade
2
jul. 20
7769
4
mar. 16
5703
0
mai. 15
164
1
mar. 15
5966
1
mar. 15
6783