O
Oli Scheit
Hi, all!
I have the following problem:
on one linux box the line
$foo = 10 / 3;
brings $foo to 3.333333e+something
and a
print sprintf '%.2f', $foo;
fails due to the e+something.
On my private linux box,
the line
$foo = 10 / 3;
brings $foo to something like 3.3333333
Probably different versions of Perl.
Is there any way to convert the x.xxxxe+y
to a formatted float?
regards,
Oli
I have the following problem:
on one linux box the line
$foo = 10 / 3;
brings $foo to 3.333333e+something
and a
print sprintf '%.2f', $foo;
fails due to the e+something.
On my private linux box,
the line
$foo = 10 / 3;
brings $foo to something like 3.3333333
Probably different versions of Perl.
Is there any way to convert the x.xxxxe+y
to a formatted float?
regards,
Oli