This could actually be pretty trivial.  Based on your earlier questions, 
I'm guessing you're already correctly parsing out the pieces of the number 
(ie. in X.YYYeZZ, you have pulled out X, YYY, and ZZ).  Because the number 
is already basically right, all you need to do is concatenate X and YYY, 
adding 0's and a '.' where appropriate.  I wouldn't convert anything to a 
number other than ZZ.

Hope that helps,
-Thomee Wright-

In article <55922@palm-dev-forum>, [EMAIL PROTECTED] says...
> 
> How can I convert a double in scientific notation
> where the exponent can vary from e^15 to e^-15 to a
> decimal number.  Then I need to round it off to two
> decimal places and convert it to a CharPtr.
> 
> At the moment I'm writing my own function to do that
> but it's taking a long time.
> 
> Example:
> Input: 1.2345678e04
> Output: 12345.68
> 
> Thanks,
> Beata
> 
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/
> 
> 
> 

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