Re:Java Hangs When Converting 2.2250738585072012e-308
by Sandman on Tuesday February 01, 2011 @01:42PM
(#2166663)
Yes, but fortunately, there is not much reason why anybody would use double when developing a banking system.
[ Parent
| on HN ]
Re:Java Hangs When Converting 2.2250738585072012e-308
by yyyy on Wednesday February 02, 2011 @02:35PM
(#2171710)
They don't have to use it directly.
GET / HTTP/1.0
Accept-Language: en;q=2.2250738585072012e-308
If you're running Tomcat and you call getLocale() on that servlet request, you're toast.
Re:Java Hangs When Converting 2.2250738585072012e-308
by wingo on Tuesday February 08, 2011 @09:26AM
(#2192917)
This is precisely why "q" is defined only to accept three digits after the decimal. It's actually not a floating point number, and anyone who parses it as such is just being lazy.
"q" is more properly represented natively as an integer between 0 and 1000.