2002-08-21 Miguel de Icaza <miguel@ximian.com>
[mono.git] / mcs / class / corlib / System / IntegerFormatter.cs
index cf162fac9a6272d99696161cbed61a7bb9723b02..b53ad1f46b68c991ba634fc258b9d8631664c220 100644 (file)
@@ -3784,6 +3784,9 @@ class FormatParse {
                if (signValue == 0 && nsections > 1)
                        section = 2;
 
+               if (number [0] == '-')
+                       number = number.Substring (1);
+
                FormatSection sec = sections [section];
                digits = AdjustDigits (number.ToString (), sec);
                if (digits.Length == 1 && digits [0] == '0')