{"action":"created","issue":{"url":"https://api.github.com/repos/foretagsplatsen/numbro/issues/139","repository_url":"https://api.github.com/repos/foretagsplatsen/numbro","labels_url":"https://api.github.com/repos/foretagsplatsen/numbro/issues/139/labels{/name}","comments_url":"https://api.github.com/repos/foretagsplatsen/numbro/issues/139/comments","events_url":"https://api.github.com/repos/foretagsplatsen/numbro/issues/139/events","html_url":"https://github.com/foretagsplatsen/numbro/issues/139","id":141199466,"number":139,"title":"specify different pattern for positive and negative number","user":{"login":"titimoby","id":348156,"avatar_url":"https://avatars.githubusercontent.com/u/348156?v=3","gravatar_id":"","url":"https://api.github.com/users/titimoby","html_url":"https://github.com/titimoby","followers_url":"https://api.github.com/users/titimoby/followers","following_url":"https://api.github.com/users/titimoby/following{/other_user}","gists_url":"https://api.github.com/users/titimoby/gists{/gist_id}","starred_url":"https://api.github.com/users/titimoby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/titimoby/subscriptions","organizations_url":"https://api.github.com/users/titimoby/orgs","repos_url":"https://api.github.com/users/titimoby/repos","events_url":"https://api.github.com/users/titimoby/events{/privacy}","received_events_url":"https://api.github.com/users/titimoby/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-16T07:52:14Z","updated_at":"2016-03-16T10:16:38Z","closed_at":null,"body":"Is there a way to specify a format pattern that is different if number is positive or negative.\r\nSomething coming from java world:\r\n`numbro(-15.2).format('###.00;(###.##)')`\r\nwhich returns:\r\n(15.2)\r\nand:\r\n`numbro(-15.2).format('###.00;(###.##)')`\r\nwhich returns:\r\n`15.20`"},"comment":{"url":"https://api.github.com/repos/foretagsplatsen/numbro/issues/comments/197248105","html_url":"https://github.com/foretagsplatsen/numbro/issues/139#issuecomment-197248105","issue_url":"https://api.github.com/repos/foretagsplatsen/numbro/issues/139","id":197248105,"user":{"login":"titimoby","id":348156,"avatar_url":"https://avatars.githubusercontent.com/u/348156?v=3","gravatar_id":"","url":"https://api.github.com/users/titimoby","html_url":"https://github.com/titimoby","followers_url":"https://api.github.com/users/titimoby/followers","following_url":"https://api.github.com/users/titimoby/following{/other_user}","gists_url":"https://api.github.com/users/titimoby/gists{/gist_id}","starred_url":"https://api.github.com/users/titimoby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/titimoby/subscriptions","organizations_url":"https://api.github.com/users/titimoby/orgs","repos_url":"https://api.github.com/users/titimoby/repos","events_url":"https://api.github.com/users/titimoby/events{/privacy}","received_events_url":"https://api.github.com/users/titimoby/received_events","type":"User","site_admin":false},"created_at":"2016-03-16T10:16:38Z","updated_at":"2016-03-16T10:16:38Z","body":"I think for the moment, it's possible to just use:\r\n`numbro(-15.2).format('(###.##)')`\r\nand forget the capacity to defined a really different format between positive and negative.\r\nThanks for the answer"}}