#611: Error decoding JSON floating point number
---------------------------------+------------------------------------------
Reporter: d...@… | Owner: lsansone...@…
Type: defect | Status: new
Priority: major | Milestone:
Component: MacRuby | Keywords:
---------------------------------+------------------------------------------
JSON decoding of floating point numbers sometimes loses accuracy. e.g.
{{{
'{"http:\/\/www.schneier.com\/blog\/archives\/2010\/02\/10_cartoons_abo.html":
{"postrank": 8.1, "postrank_color": "#ff883d"}}'
}}}
MacRuby
{{{
{"http://www.schneier.com/blog/archives/2010/02/10_cartoons_abo.html"=>{"postrank"=>8.09999999999999,
"postrank_color"=>"#ff883d"}}
}}}
Ruby 1.8.7
{{{
{"http://www.schneier.com/blog/archives/2010/02/10_cartoons_abo.html"=>{"postrank"=>8.1,
"postrank_color"=>"#ff883d"}}
}}}
--
Ticket URL: <http://www.macruby.org/trac/ticket/611>
MacRuby <http://macruby.org/>
_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel