Se rendre au contenu
Menu
Cette question a été signalée
2 Réponses
3241 Vues

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
Ignorer
Auteur Meilleure réponse

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
Ignorer
Meilleure réponse

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

Avatar
Ignorer
Auteur

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

Publications associées Réponses Vues Activité
2
juil. 20
7769
4
mars 16
5703
0
mai 15
164
1
mars 15
5966
1
mars 15
6783