Re: _ecvt, _gcvt and _fcvt problem
- From: "Almon B. Strowger" <strowger@xxxxxxxxxxxxxxx>
- Date: Fri, 29 Apr 2005 12:49:26 -0700
Hi,
The question is...Do you understand what Robert
told you?
If those don't work for you, you could try using
_stprintf / sprintf / swprintf
Almon B. Strowger
KOOK Pocket Software
"Thrax" <sefer.kilic@xxxxxxxxx> wrote in message
news:O57loMITFHA.2812@xxxxxxxxxxxxxxxxxxxxxxx
> char *res;
> double sef=0.08
> _gcvt(sef , 3 , res);
>
> Above function does not work properly.
> After execute function res must be "0.08", but it doesn't.
> Please try, you'll understand what I'm saying.
>
>
> <r_z_aret@xxxxxxxxxxxx> wrote in message
> news:5og271h5ldd79t0ktiperorpc3spkuvk9c@xxxxxxxxxx
> > On 28 Apr 2005 05:18:55 -0700, sefer.kilic@xxxxxxxxx (Thrax) wrote:
> >
> >>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.
> >
> > I don't use these functions. But the documentation I have says they
> > each return a char string. That might well be a problem, depending on
> > how you use them, because Windows CE is heavily biased towards WCHAR
> > strings. In particular, if you used a cast to assign the value to a
> > WCHAR, you will likely see the symptom you describe. If that is the
> > problem I strongly recommend taking some time to learn about UNICODE.
> > One good way is to use google to search for
> > UNICODE
> > in this newsgroup.
> >
> >
> >>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
> >
> > -----------------------------------------
> > To reply to me, remove the underscores (_) from my email address (and
> > please indicate which newsgroup and message).
> >
> > Robert E. Zaret, eMVP
> > PenFact, Inc.
> > 500 Harrison Ave., Suite 3R
> > Boston, MA 02118
> > www.penfact.com
>
>
.
- References:
- _ecvt, _gcvt and _fcvt problem
- From: Thrax
- Re: _ecvt, _gcvt and _fcvt problem
- From: r_z_aret
- Re: _ecvt, _gcvt and _fcvt problem
- From: Thrax
- _ecvt, _gcvt and _fcvt problem
- Prev by Date: Downloading files error - cannot debug or deploy on device
- Next by Date: Re: Font in Dialog
- Previous by thread: Re: _ecvt, _gcvt and _fcvt problem
- Next by thread: Re: _ecvt, _gcvt and _fcvt problem
- Index(es):
Relevant Pages
|