Thread Schleifendurchläufe berechnen
(12 answers)
Opened by qwe123qwe at 2014-02-04 13:54 Code (perl): (dl
)
1 2 3 4 sub schleifenanzahl ($$$$) { my ($von, $bis, $schritt, $count )=@_; return $count * ( int( abs($bis-$von)/$schritt )+1 ); } # end sub schleifenanzahl Last edited: 2014-02-04 16:31:27 +0100 (CET) |