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

There are 2 datatypes for fixed point values and 4 for floating point numbers in SQL.

Which are used for fields.float and fields.function (type='float', store=True) ?

Thanks.

아바타
취소
베스트 답변

Hello René, it seems all of them use the 'numeric' datatype. You can check for yourself using psql and describing a table ( \d <table_name>). You can check this out in the account_voucher module with the account_voucher_line table. Install this module and then \d(escribe) the table. Hope this helps!

Best regards,

Bruno Figares.

아바타
취소
작성자

I've done that and the result is: fields.float (no digit attribute): double precision. fields.function(type='float', store=True): numeric.

관련 게시물 답글 화면 활동
1
11월 22
2535
0
2월 21
2122
0
9월 24
140
4
9월 18
4757
5
4월 16
5553