Posted 18 October 2020, 8:55 pm EST
Hi,
I’m looking to do a custom numeric format for accounting where negative numbers are encapsulated in brackets, amongst other things:
-1234.567 → (1,234.57)
Looking at the documentation https://www.grapecity.com/wijmo/api/classes/wijmo.globalize.html#format I can see that Globalize.format is based off https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings.
As far as I can tell, the library is capable of adding in the appropriate formatting for commas and decimal places, but there isn’t any way to handle negative values enclosed in brackets.
Is there any functionality similar to https://docs.microsoft.com/en-us/dotnet/standard/base-types/custom-numeric-format-strings, or would I need to write a custom formatter to handle this?
Many thanks