sprintf formating float question
by steve silvers other posts by this author
Jan 28 2003 6:33PM messages near this date
view in the new Beta List Site
keyboard buffers
|
Search and replace in msword .doc
I'm trying to get a percent that's say 80% to the true size of 80.23%
im using something like:
$percent = 8023;
$percent = sprintf( "%.2f", $percent);
This will give me 80 but I need it to round to 80.12 or so on.
Any suggestions greatly appreciated.
Steve.
_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE*
http://join.msn.com/?page=features/virus
_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
|