OK... I cannot believe that I am stuck with this. The situation is this. I
have some strings and I want to convert them to floats or doubles in order
to sum all of them and then turn the result again to string so that I can
show it. The problem is that I cannot do it... please... I am really
stuck... those of you who already know it, please help. I just want to get a
number like 2343.33, only 2 decimal places... how can I do this?

 FlpCompDouble   Saldo;
Saldo.fd = FlpAToF( (char *) Factura.Total);
/* I know that here Saldo.d will contain a number that I can use, but I do
not know in which way
to turn that number into a string*/

Please help, the numbers I will be dealing will be like xxx,xxx,xxx.xx

Do you see... there aren't that big... so??
Thanks,
Nicolas


-----Mensaje original-----
De: Alan Ingleby <[EMAIL PROTECTED]>
Grupos de noticias: palm-dev-forum
Para: Palm Developer Forum <[EMAIL PROTECTED]>
Fecha: Jueves, 01 de Febrero de 2001 08:58 p.m.
Asunto: Re: strings to floats


>>  FlpDouble    Saldo;
>>  Saldo = FlpAToF("30.3");
>
>That looks right to me. But when I want a bit more flexibility, I use the
>FlpCompDouble data type see below:
>
>FlpCompDouble Saldo;
>Saldo.d = 30.3D;
>
>Bit easier huh?... And a LOT faster too.
>
>Alan Ingleby
>
>>
>> When I watch the fields of the Saldo Struct I do not understand where the
>> double or float it is stored, any example?
>> Thanks,
>> Nicolas
>>
>> -----Mensaje original-----
>> De: Ritesh <[EMAIL PROTECTED]>
>> Para: Palm Developer Forum <[EMAIL PROTECTED]>
>> Fecha: Jueves, 01 de Febrero de 2001 12:53 p.m.
>> Asunto: Re: strings to floats
>>
>>
>> >You  can use:
>> >FplAToF ( char * s);
>> >
>> >:)
>> >Ritesh
>> >
>> >
>> >
>> >----- Original Message -----
>> >From: Nicolas Raitman
>> >To: Palm Developer Forum
>> >Sent: Thursday, February 01, 2001 8:32 PM
>> >Subject: strings to floats
>> >
>> >
>> >Is there any function to convert a string to a float? Which?
>> >Thanks,
>> >Nicolas
>> >
>> >
>> >--
>> >For information on using the Palm Developer Forums, or to unsubscribe,
>> >please see http://www.palmos.com/dev/tech/support/forums/
>> >
>> >
>> >
>> >_________________________________________________________
>> >
>> >Do You Yahoo!?
>> >
>> >Get your free @yahoo.com address at http://mail.yahoo.com
>> >
>> >
>> >
>> >
>> >--
>> >For information on using the Palm Developer Forums, or to unsubscribe,
>> please see http://www.palmos.com/dev/tech/support/forums/
>>
>>
>>
>
>
>
>--
>For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to