Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
2 Vastaukset
3238 Näkymät

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
Hylkää
Tekijä Paras vastaus

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
Hylkää
Paras vastaus

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

Avatar
Hylkää
Tekijä

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

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
2
heinäk. 20
7769
4
maalisk. 16
5703
0
toukok. 15
164
1
maalisk. 15
5965
1
maalisk. 15
6783