You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
When rounding the value with culture where decimal separator is comma an error has occured.
Error/Exception Message
System.FormatException: "The value could not be parsed."
в System.Numerics.BigNumber.ParseBigInteger(ReadOnlySpan`1 value, NumberStyles style, NumberFormatInfo info)
в System.Numerics.BigNumber.ParseBigInteger(String value, NumberStyles style, NumberFormatInfo info)
в ExtendedNumerics.BigDecimal.GetWholePart()
в ExtendedNumerics.BigDecimal.Round(BigDecimal value, MidpointRounding mode)
Expected Behavior
The value should be correctly parsed
Actual Behavior
An error has occured: System.FormatException: "The value could not be parsed."
Steps To Reproduce
Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");
Thread.CurrentThread.CurrentCulture.NumberFormat.NumberDecimalSeparator = ",";
var res = new BigDecimal(17.56);
var e = BigDecimal.Round(res, MidpointRounding.AwayFromZero);
The text was updated successfully, but these errors were encountered:
Description
When rounding the value with culture where decimal separator is comma an error has occured.
Error/Exception Message
System.FormatException: "The value could not be parsed."
Expected Behavior
The value should be correctly parsed
Actual Behavior
An error has occured: System.FormatException: "The value could not be parsed."
Steps To Reproduce
The text was updated successfully, but these errors were encountered: