{"action":"created","issue":{"url":"https://api.github.com/repos/ohler55/oj/issues/258","labels_url":"https://api.github.com/repos/ohler55/oj/issues/258/labels{/name}","comments_url":"https://api.github.com/repos/ohler55/oj/issues/258/comments","events_url":"https://api.github.com/repos/ohler55/oj/issues/258/events","html_url":"https://github.com/ohler55/oj/issues/258","id":104583157,"number":258,"title":"rounding a float result a different float with more precisions in to_json","user":{"login":"victor-huang","id":2643033,"avatar_url":"https://avatars.githubusercontent.com/u/2643033?v=3","gravatar_id":"","url":"https://api.github.com/users/victor-huang","html_url":"https://github.com/victor-huang","followers_url":"https://api.github.com/users/victor-huang/followers","following_url":"https://api.github.com/users/victor-huang/following{/other_user}","gists_url":"https://api.github.com/users/victor-huang/gists{/gist_id}","starred_url":"https://api.github.com/users/victor-huang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victor-huang/subscriptions","organizations_url":"https://api.github.com/users/victor-huang/orgs","repos_url":"https://api.github.com/users/victor-huang/repos","events_url":"https://api.github.com/users/victor-huang/events{/privacy}","received_events_url":"https://api.github.com/users/victor-huang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-09-02T22:16:59Z","updated_at":"2015-09-03T19:06:36Z","closed_at":null,"body":"the problem in oj 2.12.12:\r\n[1] pry(main)> a = 0.8136100000000001 \r\n=> 0.81361\r\n[2] pry(main)> a.round(5).to_json\r\n=> \"0.8136100000000001\"\r\n\r\nin version  2.9.3, the to_json method will return correct result \"0.81361\""},"comment":{"url":"https://api.github.com/repos/ohler55/oj/issues/comments/137544138","html_url":"https://github.com/ohler55/oj/issues/258#issuecomment-137544138","issue_url":"https://api.github.com/repos/ohler55/oj/issues/258","id":137544138,"user":{"login":"ohler55","id":118856,"avatar_url":"https://avatars.githubusercontent.com/u/118856?v=3","gravatar_id":"","url":"https://api.github.com/users/ohler55","html_url":"https://github.com/ohler55","followers_url":"https://api.github.com/users/ohler55/followers","following_url":"https://api.github.com/users/ohler55/following{/other_user}","gists_url":"https://api.github.com/users/ohler55/gists{/gist_id}","starred_url":"https://api.github.com/users/ohler55/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ohler55/subscriptions","organizations_url":"https://api.github.com/users/ohler55/orgs","repos_url":"https://api.github.com/users/ohler55/repos","events_url":"https://api.github.com/users/ohler55/events{/privacy}","received_events_url":"https://api.github.com/users/ohler55/received_events","type":"User","site_admin":false},"created_at":"2015-09-03T19:06:36Z","updated_at":"2015-09-03T19:06:36Z","body":"Ruby is slower than C. If you are trying to get the highest performance the Ruby calls reduce the performance."}}