String.Format("{0:C2}", -1234) (Currency format) treats negative numbers as positive
c#, currency, string-formatting, string.format, vb.net
Solution
I think I will simply use:
FormatCurrency(-1234.56, 2, UseParensForNegativeNumbers:=TriState.False)
(in Microsoft.VisualBasic.Strings module)
Or in shorter words (this is what im actually going to use):
FormatCurrency(-1234.56, 2, 0, 0)
Or I will make myself a custom formatcurrency function that uses the VB function passing my custom params.
For further details take a look at the FormatCurrency Function (Visual Basic) in the msdn.
Problem
I am using `String.Format("{0:C2}", -1234)` to format numbers. It always formats the amount to a positive number, while I want it to become $ - 1234