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/
- Determining number of decimal positions David Leland
- RE: Determining number of decimal positions Mike Walters
- Re: Determining number of decimal positions David Leland
- RE: Determining number of decimal positions Mike Walters
- Re: Determining number of decimal positions David Leland
- RE: Determining number of decimal positions Mike Walters
- Re: Determining number of decimal positions Peter Epstein
- Re: Determining number of decimal positions David Leland
- Re: Determining number of decimal positions HowY
- RE: Determining number of decimal positions Richard Burmeister
- RE: Determining number of decimal positions Aaron Ardiri
- Re: Determining number of decimal positions Ben Combee
- RE: Determining number of decimal positions Martin Elzen
- Re: Determining number of decimal positions Steve Mann
- Re: Determining number of decimal positions John Marshall
- Re: Determining number of decimal positions Ben Combee
- Re: Determining number of decimal positions Aaron Ardiri
