> -Original Message-
> From: Michael Kelly [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, November 28, 2002 9:20 PM
> To: Perl Beginners List
> Subject: Re: HELP W. Print
>
>
> On Thu, Nov 21, 2002 at 04:57:03PM -0200, [EMAIL PROTECTED] wrote:
> > Hi,
>
On Thu, Nov 21, 2002 at 04:57:03PM -0200, [EMAIL PROTECTED] wrote:
> Hi,
Hi,
> How do i solve this
> Say i have an variable $number witch has the integer value of 16.526899874
> I wan to print it formatted like 16.52 (only 2 decimals)
> How do i do this with the basic print "$number"; command?
>
Hi,
How do i solve this
Say i have an variable $number witch has the integer value of 16.526899874
I wan to print it formatted like 16.52 (only 2 decimals)
How do i do this with the basic print "$number"; command?
Is there an "format string" like ##.##
?
Thanks in advance
--
To unsubscribe, e-ma