Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
3196 Tampilan

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
Buang
Penulis Jawaban Terbai

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
Buang
Jawaban Terbai

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

Avatar
Buang
Penulis

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

Post Terkait Replies Tampilan Aktivitas
2
Jul 20
7673
4
Mar 16
5646
0
Mei 15
164
1
Mar 15
5893
1
Mar 15
6714