{"action":"created","issue":{"url":"https://api.github.com/repos/mikolalysenko/robust-compare/issues/1","labels_url":"https://api.github.com/repos/mikolalysenko/robust-compare/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/mikolalysenko/robust-compare/issues/1/comments","events_url":"https://api.github.com/repos/mikolalysenko/robust-compare/issues/1/events","html_url":"https://github.com/mikolalysenko/robust-compare/issues/1","id":53320689,"number":1,"title":"am I using this right?","user":{"login":"tmpvar","id":46673,"avatar_url":"https://avatars.githubusercontent.com/u/46673?v=3","gravatar_id":"","url":"https://api.github.com/users/tmpvar","html_url":"https://github.com/tmpvar","followers_url":"https://api.github.com/users/tmpvar/followers","following_url":"https://api.github.com/users/tmpvar/following{/other_user}","gists_url":"https://api.github.com/users/tmpvar/gists{/gist_id}","starred_url":"https://api.github.com/users/tmpvar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmpvar/subscriptions","organizations_url":"https://api.github.com/users/tmpvar/orgs","repos_url":"https://api.github.com/users/tmpvar/repos","events_url":"https://api.github.com/users/tmpvar/events{/privacy}","received_events_url":"https://api.github.com/users/tmpvar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-04T01:00:09Z","updated_at":"2015-01-04T01:28:02Z","closed_at":null,"body":"```javascript\r\n\r\nvar cmp = require('robust-compare');\r\nvar sum = require('two-sum');\r\n\r\nconsole.log(cmp(sum(0.1, 0.2), sum(0.0, 0.3)));\r\n// outputs: 2.7755575615628914e-17\r\n```\r\n\r\nI would expect the result of `cmp` to be `0`.  What am I missing?"},"comment":{"url":"https://api.github.com/repos/mikolalysenko/robust-compare/issues/comments/68616897","html_url":"https://github.com/mikolalysenko/robust-compare/issues/1#issuecomment-68616897","issue_url":"https://api.github.com/repos/mikolalysenko/robust-compare/issues/1","id":68616897,"user":{"login":"mikolalysenko","id":231686,"avatar_url":"https://avatars.githubusercontent.com/u/231686?v=3","gravatar_id":"","url":"https://api.github.com/users/mikolalysenko","html_url":"https://github.com/mikolalysenko","followers_url":"https://api.github.com/users/mikolalysenko/followers","following_url":"https://api.github.com/users/mikolalysenko/following{/other_user}","gists_url":"https://api.github.com/users/mikolalysenko/gists{/gist_id}","starred_url":"https://api.github.com/users/mikolalysenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikolalysenko/subscriptions","organizations_url":"https://api.github.com/users/mikolalysenko/orgs","repos_url":"https://api.github.com/users/mikolalysenko/repos","events_url":"https://api.github.com/users/mikolalysenko/events{/privacy}","received_events_url":"https://api.github.com/users/mikolalysenko/received_events","type":"User","site_admin":false},"created_at":"2015-01-04T01:28:02Z","updated_at":"2015-01-04T01:28:02Z","body":"This result is expected, since the literal double precision numbers 0.1 and 0.2 do not sum to 0.3 even in exact arithmetic."}}