I have a function that is being passed a float value.  In my function, I
will be formatting that float value to a string (e.g.  1234.56 to 1,234.56)
and returning it.  My problem is that I do not know the number of decimal
places being passed.  The float value could be 123.456 or it could be
1234.56 or 12.3456.  Is there a way I can determine how many decimal
positions that float value has?

"Advanced Palm Programming" by Mann & Rischpater has an excellent routine
for formatting a float value to a string but unfortunately, it expects the
calling function to tell it how many decimal places to format.  My App is a
Plug-in to another Palm App so I don't have the luxury of knowing upfront
how many decimal places the float value has.

Thanks,
Dave



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