This may be one of those situations where you should use a fixed point representation 
rather than floating point. The problem with floating point binary representations is 
that they can't exactly represent simply values like 8.95, introducing the possibility 
of round-off errors. For example, the number 9.85 might come out as 9.849999999997 or 
some such. You could try to keep track of how many digits you expect to the right of 
the decimal point, but it might be better to use a fixed point representation.
--
Peter Epstein
Palm Inc. Developer


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