Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
6583 มุมมอง

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.

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
พ.ย. 22
2568
0
ก.พ. 21
2147
0
ก.ย. 24
140
Custom float field auto rounding? แก้ไขแล้ว
4
ก.ย. 18
4783
5
เม.ย. 16
5579