At 03:11 PM 4/25/00 -0300, you wrote:
>Yup, always getting that 4 bytes :-)
>
Tim,
You seem to be a little unsure of what a "string" is. It is a pointer -
which is always 4 bytes. It just happens to point to a chunk of memory the
compiler treats in special ways, just to make people happy. sizeof(x) will
always be 4 on a 32 bit machine.... because x holds a memory address.
If I have been reading correctly, you use a structure that holds a number
and the number of decimal places it is supposed to have. You can still use
the log() method, but add 1 for the period if present and possibly more for
trailing/leading zeros. It will be faster than using a number of divides
or something.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html