콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
3430 화면

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
8016
4
3월 16
5889
0
5월 15
164
1
3월 15
6123
1
3월 15
6983