develooper Front page | perl.perl5.porters | Postings from July 2016

[perl #47087] scientific notation parsing/conversion problems

Thread Next
From:
Dan Collins via RT
Date:
July 16, 2016 23:25
Subject:
[perl #47087] scientific notation parsing/conversion problems
Message ID:
rt-4.0.18-18915-1468711551-1228.47087-15-0@perl.org
$ perl5.25.2 -e 'print eval("(1.818343814922934E+05-1.818343815129567E+05)"),"\n"'
-2.06633121706545e-05
$ perl5.25.2 -e 'print eval("(181834.3814922934-181834.3815129567)"),"\n"'
-2.06632830668241e-05

What gives?

-- 
Respectfully,
Dan Collins

---
via perlbug:  queue: perl5 status: new
https://rt.perl.org/Ticket/Display.html?id=47087

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About