{"action":"closed","issue":{"url":"https://api.github.com/repos/MikeMcl/decimal.js/issues/16","labels_url":"https://api.github.com/repos/MikeMcl/decimal.js/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/MikeMcl/decimal.js/issues/16/comments","events_url":"https://api.github.com/repos/MikeMcl/decimal.js/issues/16/events","html_url":"https://github.com/MikeMcl/decimal.js/issues/16","id":86687510,"number":16,"title":"0 = 1e-20","user":{"login":"rmcdaniel","id":1130888,"avatar_url":"https://avatars.githubusercontent.com/u/1130888?v=3","gravatar_id":"","url":"https://api.github.com/users/rmcdaniel","html_url":"https://github.com/rmcdaniel","followers_url":"https://api.github.com/users/rmcdaniel/followers","following_url":"https://api.github.com/users/rmcdaniel/following{/other_user}","gists_url":"https://api.github.com/users/rmcdaniel/gists{/gist_id}","starred_url":"https://api.github.com/users/rmcdaniel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmcdaniel/subscriptions","organizations_url":"https://api.github.com/users/rmcdaniel/orgs","repos_url":"https://api.github.com/users/rmcdaniel/repos","events_url":"https://api.github.com/users/rmcdaniel/events{/privacy}","received_events_url":"https://api.github.com/users/rmcdaniel/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-09T18:17:59Z","updated_at":"2015-06-10T13:14:20Z","closed_at":"2015-06-10T13:14:20Z","body":"In certain cases, adding 1 and -1 equals 1e-20 instead of 0, if the -1 is derived a certain way. If I replace the offending -1 with a new Decimal(-1) it works fine.\r\n\r\nPlease see this jsfiddle: https://jsfiddle.net/kbyeumff/"}}