$num++ if $num =~ s#\.(\d*)## && "5" le $1;
Though this "rounds" things like 1.23e14 to 1e14 !
- tye (but my friends call me "Tye")In reply to (tye)Re: Rounding without int() or printf()
by tye
in thread Rounding without int() or printf()
by Mandor
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |