THANKS....
its run.
have you got the StrToDouble function..
dilek..
----------------------
Hello .
Use this function.....
void doubleToStr (char *str,double flpNumber,Int numFractDigits)
{
long longNumber;
double flpIP,zeros,round;
int i,strLen,remainder;
char sign=' ';
if (flpNumber<0.0)
{ flpNumber=-flpNumber;
sign='-'; }
zeros =1.0;
for (i=0;i<numFractDigits;i++)
zeros*=10;
round=0.5/zeros;
flpNumber +=round;
flpIP=(long) flpNumber;
flpNumber = flpNumber - flpIP;
str[0]=sign;
if (sign=='-')
StrIToA(&str[1],(long) flpIP);
else
StrIToA(&str[0],(long) flpIP);
strLen=StrLen(str);
str[strLen]='.';
str[numFractDigits + strLen + 1] ='\0';
longNumber = flpNumber * zeros;
for (i=numFractDigits + strLen;i>strLen; i--)
{remainder = longNumber %10;
str[i]=remainder + 0x30;
longNumber /=10;
}
}
>From: "dilek.ozgu" <[EMAIL PROTECTED]>
>Reply-To: "Palm Developer Forum" <[EMAIL PROTECTED]>
>To: "Palm Developer Forum" <[EMAIL PROTECTED]>
>Subject: GetStringFromDouble
>Date: Wed, 21 Jan 2004 11:12:28 +0200
>
>i use that function. but
>double xx;
> xx = 816 / 10 ;
>GetStringFromDouble(ss,xx, 2);
>result , ss = > 81 ???? it must be 81.60
>
>
>---
>Outgoing mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.560 / Virus Database: 352 - Release Date: 08.01.2004
>
>
>
>--
>For information on using the Palm Developer Forums, or to unsubscribe,
>please see http://www.palmos.com/dev/support/forums/
_________________________________________________________________
¿Estás dispuesto a una cita? Conoce gente en MSN Amor & Amistad.
http://match.msn.es/match/mt.cfm?pg=channel
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.560 / Virus Database: 352 - Release Date: 08.01.2004
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.560 / Virus Database: 352 - Release Date: 08.01.2004
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/