{"action":"created","issue":{"url":"https://api.github.com/repos/hiroshi-manabe/JSDecimal/issues/7","labels_url":"https://api.github.com/repos/hiroshi-manabe/JSDecimal/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/hiroshi-manabe/JSDecimal/issues/7/comments","events_url":"https://api.github.com/repos/hiroshi-manabe/JSDecimal/issues/7/events","html_url":"https://github.com/hiroshi-manabe/JSDecimal/issues/7","id":98232411,"number":7,"title":"new Decimal('79228162514264337593543950335').toString() != '79228162514264337593543950335'","user":{"login":"erik-kallen","id":688028,"avatar_url":"https://avatars.githubusercontent.com/u/688028?v=3","gravatar_id":"","url":"https://api.github.com/users/erik-kallen","html_url":"https://github.com/erik-kallen","followers_url":"https://api.github.com/users/erik-kallen/followers","following_url":"https://api.github.com/users/erik-kallen/following{/other_user}","gists_url":"https://api.github.com/users/erik-kallen/gists{/gist_id}","starred_url":"https://api.github.com/users/erik-kallen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erik-kallen/subscriptions","organizations_url":"https://api.github.com/users/erik-kallen/orgs","repos_url":"https://api.github.com/users/erik-kallen/repos","events_url":"https://api.github.com/users/erik-kallen/events{/privacy}","received_events_url":"https://api.github.com/users/erik-kallen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-30T18:31:48Z","updated_at":"2015-07-30T20:24:46Z","closed_at":null,"body":"This is the value of the MaxValue field as defined in System.Decimal, and it works in C#. The value is actually changed to 7922816251426433759354395033 (the trailing 5 is dropped). Also, if trying to parse an out-of-range value I think it should throw an overflow."},"comment":{"url":"https://api.github.com/repos/hiroshi-manabe/JSDecimal/issues/comments/126472050","html_url":"https://github.com/hiroshi-manabe/JSDecimal/issues/7#issuecomment-126472050","issue_url":"https://api.github.com/repos/hiroshi-manabe/JSDecimal/issues/7","id":126472050,"user":{"login":"erik-kallen","id":688028,"avatar_url":"https://avatars.githubusercontent.com/u/688028?v=3","gravatar_id":"","url":"https://api.github.com/users/erik-kallen","html_url":"https://github.com/erik-kallen","followers_url":"https://api.github.com/users/erik-kallen/followers","following_url":"https://api.github.com/users/erik-kallen/following{/other_user}","gists_url":"https://api.github.com/users/erik-kallen/gists{/gist_id}","starred_url":"https://api.github.com/users/erik-kallen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erik-kallen/subscriptions","organizations_url":"https://api.github.com/users/erik-kallen/orgs","repos_url":"https://api.github.com/users/erik-kallen/repos","events_url":"https://api.github.com/users/erik-kallen/events{/privacy}","received_events_url":"https://api.github.com/users/erik-kallen/received_events","type":"User","site_admin":false},"created_at":"2015-07-30T20:24:46Z","updated_at":"2015-07-30T20:24:46Z","body":"Probably caused by the .net decimal having a 2^96 mantissa, but this implementation uses 10^28 instead. 2^96 ≈ 8 * 10^28.\r\n\r\nI think it would be a good idea to use a 29-digit mantissa instead of the current 28-digit. I tried to increase the mantissa to 32 bits by changing ```n```, ```decimal_digits_per_word```, ```decimal_digits```, ```one_word``` and ```two_words```, but it broke too many tests. Probably after every operation, it should round from 32 digits to 29 digits."}}