All,

Believe it or not, I looked in the three Perl books I own and could not
find out how to do this.

My guess is that it is simple and probably the folks that wrote the
three books took it for granted.

Here goes, My code is this:

print "Do you wish to exclude ", $buf/25400, " from the output?  y/n "

Forget the print part.  I want to know if / how the $buf/25400 part can
be formatted to be a number with only two or three decimal places.

To explain, I am doing the math because I am trying to convert a number
for sizes of paper from microns to inches.

I promise to write this down and never ask again :>)

Thanks in advance for the info,

Ralph

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to