If you are using Metrowerks Codewarrior, then it's best to study the code in
SampleCalc.c. There's some work involved if you want to use the floating
point library (flpxxxx routines). There are no routines available to
display results beyond flpFToA() and flpAToF(), so you'll have to write your
own. In addition, to display up to 3 decimals, you'll need to write a
rounding function.
Michael Yam
Y Technology, Inc.
[EMAIL PROTECTED]
-----Original Message-----
From: Abraham Smith <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Thursday, March 25, 1999 3:28 PM
Subject: doing math on the palm
I am in need of advice. I am writing a palm program that has to take
numbers from several fields and run an equation with them. The equation
could produce a positive or negative number, with up to 3 decimal
places. I am trying to figure out what data types to store the numbers
from the fields in, as well as the result of the equation. I am also
trying to figure out how to display the results of this equation. I
would appreciate any advice on this issue.
Please feel free to email me directly, as well as post to the group, any
response. My email is [EMAIL PROTECTED]
Thanks in advance,
Avi I. Smith
Get Your Private, Free Email at http://www.hotmail.com