on Tue, 07 May 2002 12:33:15 GMT, [EMAIL PROTECTED] (Dan Fish) wrote:

> Is there a way to force perl to output using the %e format with
> only 2 exponent digits??
> 
I didn't find any. In the meantime, you could use a substitution:

    my $number = sprintf("%E", -0.0001);
    $number =~ s/(E[+-])0(\d\d)/$1$2/;

which is clumsy (but works ;-)

-- 
felix

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to