$c will have the result#!/usr/bin/perl -w $a=78345; $b=100; $c=$a/$b; $d=$c; $c=~s/\..*//; if( $d > $c ){ $c++; } $c*=100; print $c,"\n";
In reply to Re^3: Round up 3 values to the next 100
by gowthamtr
in thread Round up 3 values to the next 100
by siva kumar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |