in reply to
How to round and keep floating digits
Use printf "%5.3f\n", $float;
Cor! Like yer ring! ...
HALO
dammit!
... 'Ave it yer way! Hal-lo, Mister la-de-da. ... Like yer ring!
Comment on
Re: How to round and keep floating digits
Download
Code
Replies are listed 'Best First'.
Re^2: How to round and keep floating digits
by
Anonymous Monk
on Mar 12, 2008 at 21:13 UTC
the following worked with perl, no need to use bash printf ("\n \t Pass Percentage = %0.2f %\n",$float); -Prasad
[reply]
In Section
Seekers of Perl Wisdom