コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
3221 ビュー

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
7月 20
7722
4
3月 16
5675
0
5月 15
164
1
3月 15
5936
1
3月 15
6748