Is there any way to reduce the amount of decimals math might be
carried too short of printf?

I always find printf to end up taking a fair bit of time, since I've
forgotten most of what I ever knew about it each time I run into a
need for it.

I just wondered if there is any other kind of limiting mechanism?

It would be handy if simple math like:

  my $ans = (261 / 59.00)

could be made to show only 2 decimal places like:
   4.42

instead of:
   4.42372881355932



-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to