mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-16 17:10:20 -10:00
Type: System.Numerics.Complex
IFormattable format strings and string.Format formats are different
and incompatible. For example, `x.ToString("G")` and `x.ToString(null)`
must be equivalent to `x.ToString()`, but they behave very differently
with string.Format, where the former just returns "G" and the latter
throws an ArgumentNullException.
Changes System.Numerics.Complex.ToString to pass the format string to
double.ToString instead of string.Format.
Adds UnitTests for the changes in new ComplexTest.cs file
3 lines
65 B
Plaintext
3 lines
65 B
Plaintext
System.Numerics/BigIntegerTest.cs
|
|
System.Numerics/ComplexTest.cs
|