_ecvt, _gcvt and _fcvt problem

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Sory maybe this is a general c++ question, not evc++ question.
But I have problem about conversion double to string. When I use small
numbers to conversion my strings allways whitout zeros.


gcvt(0.1,2,res);
res=1

gcvt(0.08,3,res);
res=8



I can not understand where is problem, or what can I do by-pass this
problem.


I tried all other functions (ecvt and fcvt), also there is same
problem all of them.


Regards

Sefer KILIC
.



Relevant Pages

  • Re: _ecvt, _gcvt and _fcvt problem
    ... > numbers to conversion my strings allways whitout zeros. ... VC6sp6, XP ...
    (microsoft.public.vc.language)
  • _ecvt, _gcvt and _fcvt problem
    ... I have problem about conversion double to string. ... numbers to conversion my strings allways whitout zeros. ... Prev by Date: ...
    (microsoft.public.vc.language)