Skip to Content.
Sympa Menu

freetds - MONEY datatype

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Oleg Klimashevsky" <oleg AT gpb.tspace.ru>
  • To: freetds
  • Subject: MONEY datatype
  • Date: Fri, 28 May 1999 3:52:2


Does someone fix it:

/*FIX ME -- this will not handle really big money */
bignum=(unsigned char) src[4]+
(unsigned char) src[5]*256+
(unsigned char) src[6]*256*256+
(unsigned char) src[7]*256*256*256;
dollars=bignum/10000;
hundreths=bignum%10000;
sprintf(dest,"%lu.%02lu",dollars,hundreths/100);


And How to get number of records in a cursor?



  • MONEY datatype, Oleg Klimashevsky, 05/27/1999

Archive powered by MHonArc 2.6.24.

Top of Page