m-dev-forum
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Tuesday, September 18, 2001 2:57 PM
Subject: Re: converting numbers to strings and back
> There is a built in way to convert floats to strings and back again. Look
at
> the header:
> #include "FloatMgr.h&
check out
Err FlpFToA(FlpDouble a, Char *s)
ôô--o--2*--6--*--o--*--7--#--5--o--*--3--#--&--9--o--*--@--*--o--*--7--#
--5--ââ
Somewhere, something incredible is waiting to be known.
> --
> From: Siegbert Glodek[SMTP:[EMAIL PROTECTED]]
> Reply To: Palm Developer Forum
>
orum" <[EMAIL PROTECTED]>
> Sent: Tuesday, September 18, 2001 7:36 AM
> Subject: Re: converting numbers to strings and back
>
>
> > I know StrIToA, but this gives me only INTEGERS, I need numbers with
> > decimals.
> >
> > "Werner Poschenrieder&
m-dev-forum
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Tuesday, September 18, 2001 7:36 AM
Subject: Re: converting numbers to strings and back
> I know StrIToA, but this gives me only INTEGERS, I need numbers with
> decimals.
>
> "Werner Poschenrieder" <[
I would first check the systems preferences to find the NumberFormatType and
thus the decimal separator.
Then I would search for this in the string with StrChr() and split it, thus
getting the integer part and the fraction part as two strings. These I would
feed to StrAtoI() and combine the resul
I know StrIToA, but this gives me only INTEGERS, I need numbers with
decimals.
"Werner Poschenrieder" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:62731@palm-dev-forum...
>
> StrAtoI(CharPtr str);
>
> Siegbert Glodek schrieb:
>
> > Hello all,
> > I'm new in C and have to convert numbers from n
StrAtoI(CharPtr str);
Siegbert Glodek schrieb:
> Hello all,
> I'm new in C and have to convert numbers from number format to string and
> back.
>
> Reason :
> I work with Sybase-UltraLite on a database that stores some numerical values
> (with decimals, not integers). I read the values as numeri