No the answer is not always 2.000000e it varies depending on what I enter. Like if I enter your suggestion 1.234 and 4.321 the result is 5.3321142e
If I enter 4.0 and 5.0 I get 2.0000000e instead of 20.00000 If I enter 3.2 and 2.3 I get 7.3600001e If I enter 5.0 and 5.0 I get 2.5000000e instead of 25.00000 If I enter 4.4 and 1.2 I get 5.2800002e It appears to have something to do with if the initial values are whole numbers instead of decimal numbers. How do I get around that? I have included MathLib.h in my code, but am not sure how to make it work in the Palm OS Garnet Simulator. I am using the Palm OS C/C++ Development Suite to develop this application. Not sure if that matters. I am a long time Java programmer and have done a little C programming years ago. this is stretching my C memory. Thanks in advance for your assistance Dean-O _____ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Pinus Alba Sent: Sunday, February 11, 2007 3:27 PM To: Palm Developer Forum Subject: Re: Math error, keep getting same value Hi DeanO, Is the answer 2.0000000e for all input values? Or does it change according to the input values? What does your app give if you enter the values 1.234 and 4.321? Regards, On 11/02/07, DeanO <[EMAIL PROTECTED]> wrote: I think I got it, but now I am getting a solution for the math but when I do 4 and 5 for the initial values. The result is 2.0000000e instead of 20.0000 with how ever many decimals. How do I get this to display right? Also, how to I limit the decimals displayed in the results? Thanks in advance Dean-O -- -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
