Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

srv_convert failure

3 views
Skip to first unread message

Tim Cheski

unread,
May 12, 2000, 3:00:00 AM5/12/00
to
srv_convert fails for values less then 0.1


DBNUMERIC dbnumeric;

dbnumeric.precision = 14;
dbnumeric.scale = 4;

double d = 0.05;

int rc = srv_convert (srv_proc_, SRVFLT8, &d, 1, SRVNUMERIC, &dbnumeric,
1);
int rc = srv_convert (srv_proc_, SRVNUMERIC, &dbnumeric, 1, SRVFLT8, &d,
1 );

put the code to convert back to double - the result is crap


Any idea?

regards,
Tim

0 new messages