تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
3239 أدوات العرض

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?

الصورة الرمزية
إهمال
الكاتب أفضل إجابة

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

الصورة الرمزية
إهمال
أفضل إجابة

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

الصورة الرمزية
إهمال
الكاتب

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

المنشورات ذات الصلة الردود أدوات العرض النشاط
2
يوليو 20
7769
4
مارس 16
5703
0
مايو 15
164
1
مارس 15
5965
1
مارس 15
6783