{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rustc-serialize/issues/113","labels_url":"https://api.github.com/repos/rust-lang/rustc-serialize/issues/113/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rustc-serialize/issues/113/comments","events_url":"https://api.github.com/repos/rust-lang/rustc-serialize/issues/113/events","html_url":"https://github.com/rust-lang/rustc-serialize/issues/113","id":82152044,"number":113,"title":"Floats do not roundtrip correctly","user":{"login":"jamii","id":340884,"avatar_url":"https://avatars.githubusercontent.com/u/340884?v=3","gravatar_id":"","url":"https://api.github.com/users/jamii","html_url":"https://github.com/jamii","followers_url":"https://api.github.com/users/jamii/followers","following_url":"https://api.github.com/users/jamii/following{/other_user}","gists_url":"https://api.github.com/users/jamii/gists{/gist_id}","starred_url":"https://api.github.com/users/jamii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamii/subscriptions","organizations_url":"https://api.github.com/users/jamii/orgs","repos_url":"https://api.github.com/users/jamii/repos","events_url":"https://api.github.com/users/jamii/events{/privacy}","received_events_url":"https://api.github.com/users/jamii/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-28T22:29:02Z","updated_at":"2015-05-28T23:08:27Z","closed_at":null,"body":"``` rust    \r\nlet string = format!(\"{}\", Json::F64(0.107));\r\nlet json = Json::from_str(&string).unwrap();\r\nlet float = json.as_f64().unwrap();\r\nprintln!(\"{:?}\", 0.107);\r\nprintln!(\"{}\", float);\r\nassert_eq!(float, 0.107);\r\n```\r\n\r\nOther implementations eg in v8 get this right. The default rust printer also gets it right."},"comment":{"url":"https://api.github.com/repos/rust-lang/rustc-serialize/issues/comments/106623847","html_url":"https://github.com/rust-lang/rustc-serialize/issues/113#issuecomment-106623847","issue_url":"https://api.github.com/repos/rust-lang/rustc-serialize/issues/113","id":106623847,"user":{"login":"alexcrichton","id":64996,"avatar_url":"https://avatars.githubusercontent.com/u/64996?v=3","gravatar_id":"","url":"https://api.github.com/users/alexcrichton","html_url":"https://github.com/alexcrichton","followers_url":"https://api.github.com/users/alexcrichton/followers","following_url":"https://api.github.com/users/alexcrichton/following{/other_user}","gists_url":"https://api.github.com/users/alexcrichton/gists{/gist_id}","starred_url":"https://api.github.com/users/alexcrichton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexcrichton/subscriptions","organizations_url":"https://api.github.com/users/alexcrichton/orgs","repos_url":"https://api.github.com/users/alexcrichton/repos","events_url":"https://api.github.com/users/alexcrichton/events{/privacy}","received_events_url":"https://api.github.com/users/alexcrichton/received_events","type":"User","site_admin":false},"created_at":"2015-05-28T23:08:27Z","updated_at":"2015-05-28T23:08:27Z","body":"Er oops, commented too soon, running this on nightly gives:\r\n\r\n```\r\n0.107\r\n0.10700000000000001\r\nthread '<main>' panicked at 'assertion failed: `(left == right)` (left: `0.10700000000000001`, right: `0.107`)', src/main.rs:13\r\n```\r\n\r\nWhich is to say that these are indeed different (the floating point printing routines were recently greatly improved) but it appears the parsing code is just a little off."}}