> Thanks for the code. However, and perhaps I'm missing something, I'm
> trying to convert a string to a double.
Sorry.. my bad.. guess I should read the question a little closer. :)
Try this one:
double StrAToF(char *str)
{
FlpCompDouble theCompFloat;
double theFloat;
// Convert a string to a float
theCompFloat.fd = FlpAToF(str);
theFloat = theCompFloat.d;
return theFloat;
}
You have to include "FloatMgr.h" (or NewFloatMgr.h in pre-3.5 SDK), but this
has always worked for me.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/