Help with Stupid question
- From: rstoos@xxxxxxxxxxxxxxxx (Ralph H. Stoos Jr.)
- Date: Sat, 15 Jul 2006 18:14:25 -0400
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
.
- Follow-Ups:
- Re: Help with Stupid question
- From: kenslaterpa
- Re: Help with Stupid question
- From: Tom Phoenix
- Re: Help with Stupid question
- Prev by Date: Re: strip
- Next by Date: Re: Help with Stupid question
- Previous by thread: HANDY PERL ONE-LINERS
- Next by thread: Re: Help with Stupid question
- Index(es):