Alain <ele### [at] netscapenet> wrote:
> You can circumvent the problem by multiplying everything by 100, and dividing by
> 100 as you use the values to get the actual positions. It may slightly increase
> the parsing time, but you are now adding units and avoiding the rounding errors.
The standard easy way to avoid these errors is not to use floating point
as loop counters. Just use integer loop counters and then create a floating
point variable from it, scaling it to the desired range. As I demonstrated
in another post.
--
- Warp
Post a reply to this message
|