Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
3276 มุมมอง

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.

Related Posts ตอบกลับ มุมมอง กิจกรรม
How can I stop round decimals in odoo 12 แก้ไขแล้ว
2
ก.ค. 20
7830
4
มี.ค. 16
5729
0
พ.ค. 15
164
1
มี.ค. 15
5993
1
มี.ค. 15
6827