Link to home
Start Free TrialLog in
Avatar of rgbcof
rgbcof

asked on

perl, get rid of exponential notation

$val1 =             "0.000001";
$val2 = $val1 + "0.00001";
print "val2 = $val2\n";  # it prints out 1.1e-05

#How do I get it to print "0.000011"
ASKER CERTIFIED SOLUTION
Avatar of ozo
ozo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rgbcof
rgbcof

ASKER

perfect