decimal decimalVal;
Decimal.TryParse("123-", out decimalVal);
Console.WriteLine(decimalVal); // -123

Why do "123-" string parsed this way?

c#
Edit
Report