Ticket #611 (new defect)
MacRuby floats are less precise than CRuby floats
| Reported by: | dj2@… | Owned by: | lsansonetti@… |
|---|---|---|---|
| Priority: | major | Milestone: | MacRuby Later |
| Component: | MacRuby | Keywords: | |
| Cc: |
Description
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"}}'
{"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"}}
Attachments
Change History
Note: See
TracTickets for help on using
tickets.


