in reply to Re^2: Round up 3 values to the next 100
in thread Round up 3 values to the next 100
$num = 235634; if (length($num) >=3 ) { $var = substr($num,-2,2); if ( !$var eq '00') { $var1 = 100 - $var; $num += $var1; } print $num; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Round up 3 values to the next 100
by bobf (Monsignor) on Feb 14, 2007 at 07:26 UTC |