note
ww
Actually, the "best" way to round a number may be as follows:
<c>perl -E "my $num=\"33\"; say \"$num\".'0';"
330</c>
<p>There appears to be some general agreement that any multiple of ten is a "round" number. If that's not a broad enough concensus, try concatenating 2, 3, 4 or 5 zeros.</p>
<p><b>This solution is scarcely more fatuous than your suggestion that the best way to round a number is "<i>the logic on the sample code....</i>"</b></p>
1000734
1000734