NEED HELP!
barry_hanenburg at agilent.com
barry_hanenburg at agilent.com
Mon May 14 16:38:23 CDT 2001
Matt:
Try this:
....
$test = 714;
printf "%5.2f", $test;
....
It should give you the desired result...
Barry
-----Original Message-----
From: Matthew J Long [mailto:matt.long at matthew-long.com]
Sent: Monday, May 14, 2001 3:14 PM
To: Pikes Peak Perl Mongers
Subject: NEED HELP!
All,
Can you guys give me a hand here? Given a scalar that contans the integer
714, how can I make it print out 714.00? I've tried several different
variations with printf and sprintf, but to no avail. Any help would be
appreciated.
-Matt
More information about the Pikes-peak-pm
mailing list