Java Hangs When Converting 2.2250738585072012e-308 (by Rick Regan via exploringbinary.com)

Konstantin Preisser made an interesting discovery, after reading my article “PHP Hangs On Numeric Value 2.2250738585072011e-308”: Java — both its runtime and compiler — go into an infinite loop when converting the decimal number 2.2250738585072012e-308 to double-precision binary floating-point. This number is supposed to convert to 0x1p-1022, which is DBL_MIN; instead, Java gets stuck on 0x0.fffffffffffffp-1022, the largest subnormal double-precision floating-point number.

….

Read the whole post: http://www.exploringbinary.com/java-hangs-when-converting-2-2250738585072012e-308/

Advertisements

2 responses to “Java Hangs When Converting 2.2250738585072012e-308 (by Rick Regan via exploringbinary.com)

  1. Hi,

    I see that you’re trying to give me credit, but this is still a full copy of my article. I’d appreciate it if you’d just post a summary or snippet instead. Thanks.

    • Sorry, I just imported posts from my old blog today and this came unnoticed. It won’t happen again, I will edit the post to a snippet. Thank you in advance.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s