跳至内容
菜单
此问题已终结
2 回复
3201 查看

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
7688
4
3月 16
5652
0
5月 15
164
1
3月 15
5899
1
3月 15
6718