$num = 486733; $num =~ /(\d{3})$/; my $rnd = $1 / 100; $rnd = sprintf "%.0f", $rnd; $rnd .= '00'; $num =~ s/$1/$rnd/;
In reply to Re: Round up 3 values to the next 100
by TOD
in thread Round up 3 values to the next 100
by siva kumar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |