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.
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.
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj się| Powiązane posty | Odpowiedzi | Widoki | Czynność | |
|---|---|---|---|---|
|
1
lis 22
|
3664 | |||
|
0
lut 21
|
3049 | |||
|
0
wrz 24
|
140 | |||
|
Custom float field auto rounding?
Rozwiązane
|
4
wrz 18
|
6012 | ||
|
5
kwi 16
|
6820 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.