in reply to Is the number before, in or after the interval? using spaceship operator <=>
Strange, I count 6 operations! :)
floor (($i - $l ) / ($r - $l +1 )) <=> 0 1 2 3 4 5 6
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
PS: Please don't post such stuff in SOPW without a clear question, you are keeping others busy moderating that stuff:
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Is the number before, in or after the interval? using spaceship operator <=>
by rsFalse (Chaplain) on Nov 21, 2014 at 14:43 UTC | |
by LanX (Saint) on Nov 21, 2014 at 15:23 UTC |