Open kinguru opened 7 years ago
Could you give an example of somewhere where the minus sign comes to the right of the number? In a quick google search, I couldn't find any.
Trailing minus sign is specific for next Locales: FA HE
you can find it in CLDR data repository.
Negative number formatting should not be in Format, but should be in LocaleData, for example: It could be: -100 (100) 100-
And it is Locale specific (culture specific) information, not Format specific. So I want to modify negative number format to be in Locale, not in formatting pattern.
numeral.register('locale', 'en', { negativeNumberFormat: -1, //// format here, example values: -1, 0, 1 delimiters: { thousands: ',', decimal: '.' }, abbreviations: { thousand: 'k', million: 'm', billion: 'b', trillion: 't' }, ordinal: function(number) { var b = number % 10; return (~~(number % 100 / 10) === 1) ? 'th' : (b === 1) ? 'st' : (b === 2) ? 'nd' : (b === 3) ? 'rd' : 'th'; }, currency: { symbol: '$' } });