M
Mark Hobley
How do I get Perl to display a long decimal number, without converting to
scientific notation or rounding?
print 6/45*5/44*4/43*3/42*2/41;
4.91095215995953e-06
printf "%lf",6/45*5/44*4/43*3/42*2/41;
0.000005
I would like the following output:
0.00000491095215995953
Thanks in advance.
Mark.
--
Mark Hobley
393 Quinton Road West
QUINTON
Birmingham
B32 1QE
Telephone: (0121) 247 1596
International: 0044 121 247 1596
Email: markhobley at hotpop dot donottypethisbit com
http://markhobley.yi.org/
scientific notation or rounding?
print 6/45*5/44*4/43*3/42*2/41;
4.91095215995953e-06
printf "%lf",6/45*5/44*4/43*3/42*2/41;
0.000005
I would like the following output:
0.00000491095215995953
Thanks in advance.
Mark.
--
Mark Hobley
393 Quinton Road West
QUINTON
Birmingham
B32 1QE
Telephone: (0121) 247 1596
International: 0044 121 247 1596
Email: markhobley at hotpop dot donottypethisbit com
http://markhobley.yi.org/