It looks like System.Globalization.NumberStyles
is set to AllowTrailingSign
. You can change your double.Parse
method to place the sign in front of the number like this.
string res=String.Format("{0:#.##;-#.##}", (Double.Parse("200.549") * -1));
The first 3 '#'symbols format a positive number. No '+' sign rounded to 2 decimal places. The second set of 3 '#'symbols format a negative number. A '-' sign followed by the number rounded to 2 decimal places.