Alan, thanks for your answer but I have been trying several different
combinations of what you have told me and I could not make it work
FlpCompDouble Total;
FlpCompFloat Saldo;
Total.fd = FlpAToF( (char *) Factura.Total);
Saldo.f = Total.d;
FlpFToA(Saldo.ff, (char *) strSaldo); /* this line is the one which does not
compile. The compiler says that 'illegal implicit conversion from long to
struct, what is the problem?? */
please help me!
Thanks,
Nicolas
-----Mensaje original-----
De: Alan Ingleby <[EMAIL PROTECTED]>
Grupos de noticias: palm-dev-forum
Para: Palm Developer Forum <[EMAIL PROTECTED]>
Fecha: Viernes, 02 de Febrero de 2001 01:48 a.m.
Asunto: Re: floats
>> 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*/
>
>The reverse of the above is:
>
>
>FlpCompFloat tempFloat;
>
>tempFloat.f = Salda.d;
>FlpFToA((char *) Factura.Total, tempFloat.ff);
>
>
>There ya go.
>
>Alan Ingleby
>
>
>
>--
>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/