Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
3161 Zobrazení

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
Zrušit
Autor Nejlepší odpověď

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
Zrušit
Nejlepší odpověď

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

Avatar
Zrušit
Autor

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

Related Posts Odpovědi Zobrazení Aktivita
2
čvc 20
7642
4
bře 16
5618
0
kvě 15
164
1
bře 15
5882
1
bře 15
6702