[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Re:
$Num = '10.29999';
$Rounded = sprintf("%.2f", $Num);
print "$Rounded\n";
Adityan, isn't that u want ?
Sreeji
On Wed, 20 Dec 2000, Adityan Murthy wrote:
> Hi all,
>
> How do i round a number to 2 decimal places in perl?
>
> Thanks
>
> Adityan
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
>
> ---------------------------------------------
> The mailing list archives are available at
> http://lists.linux-india.org/cgi-bin/wilma/LIP
>