{"action":"created","issue":{"url":"https://api.github.com/repos/andrewgp/jsNumberFormatter/issues/4","labels_url":"https://api.github.com/repos/andrewgp/jsNumberFormatter/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/andrewgp/jsNumberFormatter/issues/4/comments","events_url":"https://api.github.com/repos/andrewgp/jsNumberFormatter/issues/4/events","html_url":"https://github.com/andrewgp/jsNumberFormatter/issues/4","id":96486208,"number":4,"title":"Negative values not formatted properly","user":{"login":"ashah-kaira","id":11182848,"avatar_url":"https://avatars.githubusercontent.com/u/11182848?v=3","gravatar_id":"","url":"https://api.github.com/users/ashah-kaira","html_url":"https://github.com/ashah-kaira","followers_url":"https://api.github.com/users/ashah-kaira/followers","following_url":"https://api.github.com/users/ashah-kaira/following{/other_user}","gists_url":"https://api.github.com/users/ashah-kaira/gists{/gist_id}","starred_url":"https://api.github.com/users/ashah-kaira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashah-kaira/subscriptions","organizations_url":"https://api.github.com/users/ashah-kaira/orgs","repos_url":"https://api.github.com/users/ashah-kaira/repos","events_url":"https://api.github.com/users/ashah-kaira/events{/privacy}","received_events_url":"https://api.github.com/users/ashah-kaira/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-22T06:38:03Z","updated_at":"2015-07-27T15:01:17Z","closed_at":null,"body":"I am using this library to format the values based on the current culture (e.g. 'en','cs' etc.) applied the its great library.\r\n\r\nNow, I am having issues with formatting negative numbers. I am using below code to format the number.\r\n\r\n```javascript\r\nvar options = new JsNumberFormatter.locales.formatOptions('en').specifyDecimalMask('00');\r\nvar number = JsNumberFormatter.formatNumber(parseFloat(formatted), options, true);\r\n```\r\n\r\nWhen supplied any positive value, it works but its not working with the negative values. e.g. When I am supplying **369.75**, it formats correctly and outputs as **369.75**. Now, when I supply **-369.75**, it formats this as **-,369,.75.00** which is wrong. It should have output as **-369.75**.\r\n\r\nCan anybody out there help me solve this problem?"},"comment":{"url":"https://api.github.com/repos/andrewgp/jsNumberFormatter/issues/comments/125237723","html_url":"https://github.com/andrewgp/jsNumberFormatter/issues/4#issuecomment-125237723","issue_url":"https://api.github.com/repos/andrewgp/jsNumberFormatter/issues/4","id":125237723,"user":{"login":"andrewgp","id":591084,"avatar_url":"https://avatars.githubusercontent.com/u/591084?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewgp","html_url":"https://github.com/andrewgp","followers_url":"https://api.github.com/users/andrewgp/followers","following_url":"https://api.github.com/users/andrewgp/following{/other_user}","gists_url":"https://api.github.com/users/andrewgp/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewgp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewgp/subscriptions","organizations_url":"https://api.github.com/users/andrewgp/orgs","repos_url":"https://api.github.com/users/andrewgp/repos","events_url":"https://api.github.com/users/andrewgp/events{/privacy}","received_events_url":"https://api.github.com/users/andrewgp/received_events","type":"User","site_admin":false},"created_at":"2015-07-27T15:01:17Z","updated_at":"2015-07-27T15:01:17Z","body":"https://code.google.com/p/jquery-numberformatter/\n\nI don't know what you're using it for, all I can say if it's production\nthen use the above as it's not a beta version.\n\nAndrew\n\nOn Mon, 27 Jul 2015 at 12:46 ashah-kaira <notifications@github.com> wrote:\n\n> As you suggested to use jQuery version,\n> Are there any documentation for how to use?\n> Does that support localization better than jQueryNumberFormatter?\n>\n> Please let me know asap.\n>\n> Thanks\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/andrewgp/jsNumberFormatter/issues/4#issuecomment-125176200>\n> .\n>\n"}}