Here is the $provided in the angular.js file that forces negative numbers to have the minus sign. I would rather not modify the angular.js source code.
$provide.value("$locale", {
"DATETIME_FORMATS": {
*
*
*
"NUMBER_FORMATS": {
"CURRENCY_SYM": "$",
"DECIMAL_SEP": ".",
"GROUP_SEP": ",",
"PATTERNS": [
{
"gSize": 3,
"lgSize": 3,
"maxFrac": 3,
"minFrac": 0,
"minInt": 1,
"negPre": "-",
"negSuf": "",
"posPre": "",
"posSuf": ""
},
{
"gSize": 3,
"lgSize": 3,
"maxFrac": 2,
"minFrac": 2,
"minInt": 1,
"negPre": "-\u00a4",
"negSuf": "",
"posPre": "\u00a4",
"posSuf": ""
}
]
},
*
*
*
I want to overwrite this behavior and have a custom configuration file that will give negative numbers parenthesis instead of the negative sign.
Current output: -48.25 Desired output: (48.25)