On Tue, Jan 22, 2002 at 01:07:21PM +0000, Marcio Pacheco wrote:
> Hello,
> 
> How can I write to the Palm screen the result of this following command:
> 
> FlpFloat Temp=59152/1000;
> 
> I have tryed to use the FloatMgr.h library but I didn't have good results.

Please note that perhaps the code you posted doesn't do what you would
expect: you are dividing two integer numbers, so that the result
will be an integer (59 in your case).
Maybe you intended something like:

  FlpFloat Temp = 59152 / 1000.0;

(also 59152.0 / 1000 or 59152.0 / 1000.0 would be good choices).
Alternatively you can use a cast:

  FlpFloat Temp = 59152 / (FlpFloat)1000;

(same permuations apply).
Regards,
Marco

P.S. It's not a command, but a statement (an expression statement to
be precise :-).

-- 
========================================================================
Marco Pantaleoni                                  [EMAIL PROTECTED]
Padova, Italy                                              [EMAIL PROTECTED]
elastiC language developer                   http://www.elasticworld.org

-- 
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