You haven't been using printf correctly. Try
foreach (qw(
1000.000
10.0000000
100.0000000
10000.0000000))
{
printf "%13.6f\n", $_;
}
The %13.6 gives a total field width of 13 and 6 decimal places. Same as C. The
default is to right-justify within the field.
HTH,
Rob
> -----Original Message-----
> From: Govinderjit Dhinsa [mailto:[EMAIL PROTECTED]]
> Sent: 06 September 2001 15:38
> To: '[EMAIL PROTECTED]'
> Cc: '[EMAIL PROTECTED]'
> Subject: Printf
>
>
> How could I please put the following example;
>
> 1000.000
> 10.0000000
> 100.0000000
> 10000.0000000
> To please print out, IN A LINE with the Decimal Place! and not from the
> first number, so all the decimal places would line up!
> example;
>
> I have tried printf and had no luck
>
> Thanks
> GD
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]