Home > Back-end >  C ado SQL server lost 0 before the decimal point
C ado SQL server lost 0 before the decimal point

Time:09-24

My database field type decimal (5, 4) stored value is 0.7500, I use ado _RecordsetPtr _ConnectionPtr execution Excute () after read
The following fields:
 
Cstrings fund=(TCHAR *) (_bstr_t) (m_pRecordset - & gt; The GetFields () - & gt; The GetItem (" fund ") - & gt; Value);
AfxMessageBox (fund);

Show as a result of the "75" 0 behind and in front of the decimal point of 0

CodePudding user response:

The debug to see, read the original results, what is it?

CodePudding user response:

If you can use FloatToStrF function in BCB, transformation,
  • Related