Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 6
    It's worse than that. It's a problem with your understanding of floating point arithmetic. Change your print statement to printf "%.18f\n",$t; for enlightenment. Commented Oct 29, 2013 at 18:19
  • 1
    Wait, what? No-one is linking to "What Every Programmer Should Know About Floating Point Arithmetic"? There should be a badge for this.... docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html Commented Oct 29, 2013 at 18:25
  • 4
    @PaulDixon, the Perl FAQ that was linked to has a link to that paper. Commented Oct 29, 2013 at 18:31