in reply to How do I get a loop to recognize a number between $i and $i+1 (a decimal number)
or, for something more arbitrary:for my $n (0..100) { $n /= 100; # do something with a number between 0.00 and 1.00 }
update: the more i read the question, the less certain i am i know what you mean... hope this helps, though...for my $n (437 .. 1287) { $n /= 1000; # do something with a number between .437 and 1.287 }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (ar0n) Re: How do I get a loop to recognize a number between $i and $i+1 (a decimal number)
by Kailua362 (Novice) on Jul 26, 2001 at 12:50 UTC | |
by virtualsue (Vicar) on Jul 26, 2001 at 15:01 UTC |