Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
<?php $start = microtime(true); print sqroot(400); $stop = microtime(true); print "<br>Sqr Root Finding took: " . ($stop - $start) . " seconds"; function sqroot($num) { $number = 400; if($num == 0) { return 0; } $n = $num / 2 +1; $n1 = ($n + ($num / $n)) / 2; while($n1 < $n) { $n = $n1; $n1 = ($n + ($num / $n)) / 2; } return $n; } ?>
This paste will be private.
From the Design Piracy series on my blog: