Testing floating point numbers for equality (== or !=) is the problem. Instead test using >=, >, < or <=.
In reply to Re: Floating point number counting script stuck in a loop
by GrandFather
in thread Floating point number counting script stuck in a loop
by Vonunov
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |