Formatting currency
ASP.NET
2
Posts
2
Posters
0
Views
1
Watching
-
I have applied this format {0:c} which shows a negative number like this ($23.43)....i want to show negative numbers in square brackets. How to achieve that?
Civic06 wrote:
.i want to show negative numbers in square brackets.
It's not the *standard* way to show negative numbers. using round brackets '()' is the standard way to show negative number and thus the implementation. If you want to show it in square bracket '[]' then you need to write your own custom formatter. You cannot change this in existing format rules.