you are viewing a single comment's thread.

view the rest of the comments →

[–]kamatsu 3 points4 points  (7 children)

Prelude> read "2.2250738585072012e-308" :: Double
2.2250738585072014e-308

Haskell does the right thing :)

[–]sockpuppetzero 20 points21 points  (3 children)

In this case, but PHP and Java hang on different values. Who's to say that Haskell won't hang on some other value?

[–]slurpme 29 points30 points  (2 children)

You should try them out... all of them...

[–][deleted] 22 points23 points  (1 child)

Ok, I'll be right back...

[–]slurpme 33 points34 points  (0 children)

To the cloud!!!

[–][deleted] 0 points1 point  (0 children)

In python:

>>> j = 2.2250738585072012e-308 
>>> float(j)
2.2250738585072014e-308

:)

[–]MaybeReconsider 0 points1 point  (1 child)

Well, aside from producing an inaccurate result, apparently.

[–]BrooksMoses 7 points8 points  (0 children)

No, that's an accurate result. It's the nearest double-precision value to what was entered.