db-lib DBNUMERIC structure
LacaK <[email protected]>
| Newsgroups | gmane.comp.db.tds.freetds |
|---|---|
| Message-ID | <[email protected]> |
Hi,
there is sybdb.h
typedef struct dbnumeric
{
char precision;
char scale;
unsigned char val[MAXNUMLEN];
} DBNUMERIC;
for retrieving exact numeric data.
But I can not find, how to interpret/read "val" array to construct number.
I found article from Microsoft db-lib:
http://support.microsoft.com/kb/222831
But it seems, that Microsoft start from index 0 from low significant
values to high significant.
In case of FreeTDS it seems, that order is reversed and somehow shifted
(based on precision).
Can somebody explain how to correctly construct value ?
Thanks
-Laco.
_______________________________________________
FreeTDS mailing list
[email protected]
http://lists.ibiblio.org/mailman/listinfo/freetds