İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
3368 Görünümler

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
Vazgeç
Üretici En İyi Yanıt

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
Vazgeç
En İyi Yanıt

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

Avatar
Vazgeç
Üretici

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

İlgili Gönderiler Cevaplar Görünümler Aktivite
2
Tem 20
7947
4
Mar 16
5841
0
May 15
164
1
Mar 15
6093
1
Mar 15
6927