In your message regarding RE: Math error, keep getting same value dated
Mon, 12 Feb 2007 16:01:19 -0500, DeanO said that ...

>  You are correct, after the e there is a 01 for 4.0 and 5.0
>  There is a 00 after the e for 3.2 and 2.3
>  
>  So how do I get this to stop putting data out as scientific notation?
Search this newsgroup for the functions GetStringFromDouble and
GetDoubleFromString. They are part of the "common language", utility
routines that are not part of the SDK but should be, and are widely used.
Another such routine is GetObjectPtr().
Bottom line, to convert a double d to a string s with decimal digits g,
GetStringFromDouble(s,d,g);

>  
>  Is Palm math always this hard?
Yes
>  
>  Dean-O
>  
>  -----Original Message-----
>  From: [EMAIL PROTECTED]
>  [EMAIL PROTECTED] On Behalf Of Bodo Wenzel
>  Sent: Monday, February 12, 2007 12:03 PM
>  To: Palm Developer Forum
>  Subject: Re: Math error, keep getting same value
>  
>  What characters are after the "e"? This character has the meaning of
>  "* 10 ^" saying for example 2.5000000e1 is 2.5 * 10 ^ 1 = 25.
>  
> > If I enter 4.0 and 5.0 I get  2.0000000e instead of 20.00000
>  There might be a "1" after "e"...
>  
> > If I enter 3.2 and 2.3 I get 7.3600001e
>  Here it might be a "0"...
>  
> > If I enter 5.0 and 5.0 I get 2.5000000e instead of 25.00000
>  Again the "1".
>  
> > If I enter 4.4 and 1.2 I get 5.2800002e
>  And the "0" once more.
>  
>  Bodo
>  
>  
>  -- 
>  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/
>  
>  



-- 


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

Reply via email to