From d4ca96fdb51c4e73627527f910af838196695a6f Mon Sep 17 00:00:00 2001 From: Jeff Handley Date: Thu, 18 Jul 2024 20:58:34 -0700 Subject: [PATCH] Update Complex.ToString to reflect formatting in .NET 8+ Per dotnet/docs#41835, the format from Complex.ToString changed in .NET 8 from (a, b) to --- xml/System.Numerics/Complex.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xml/System.Numerics/Complex.xml b/xml/System.Numerics/Complex.xml index cb63b9992bc..4f04d42d834 100644 --- a/xml/System.Numerics/Complex.xml +++ b/xml/System.Numerics/Complex.xml @@ -6816,7 +6816,7 @@ Languages that support custom operators can use the `, where *a* is the real part of the complex number, and *b* is its imaginary part. Both *a* and *b* are formatted using the general format specifier ("G") and the conventions of the current system culture. @@ -6889,7 +6889,7 @@ Languages that support custom operators can use the `, where *a* is the real part of the complex number, and *b* is its imaginary part. Both *a* and *b* are formatted using the general format specifier ("G") and the conventions of the culture defined by `provider`. The `provider` parameter is an implementation. Its method returns a object that provides culture-specific information about the format of the real and imaginary numbers in the returned string. If `provider` is `null`, the returned string is formatted using the object of the current culture. @@ -6976,7 +6976,7 @@ Languages that support custom operators can use the or is `null`, the real and imaginary parts of the complex number are formatted with the general format specifier ("G"). If `format` is any other value, the method throws a . + The string representation of the complex number returned by this method displays the number using its Cartesian coordinates in the form `<`*a*`;` *b*`>`, where *a* is the real part of the complex number, and *b* is its imaginary part. Both *a* and *b* are formatted using the format string specified by `format`. The `format` parameter can be any valid standard numeric format specifier, or any combination of custom numeric format specifiers. If `format` is equal to or is `null`, the real and imaginary parts of the complex number are formatted with the general format specifier ("G"). If `format` is any other value, the method throws a . The .NET Framework provides extensive formatting support, which is described in greater detail in the following topics: @@ -7066,7 +7066,7 @@ Languages that support custom operators can use the or is `null`, the real and imaginary parts of the complex number are formatted with the general format specifier ("G"). If `format` is any other value, the method throws a . + The string representation of the complex number returned by this method displays the number using its Cartesian coordinates in the form `<`*a*`;` *b*`>`, where *a* is the real part of the complex number, and *b* is its imaginary part. Both *a* and *b* are formatted using the format string specified by `format`. The `format` parameter can be any valid standard numeric format specifier, or any combination of custom numeric format specifiers. If `format` is equal to or is `null`, the real and imaginary parts of the complex number are formatted with the general format specifier ("G"). If `format` is any other value, the method throws a . The .NET Framework provides extensive formatting support, which is described in greater detail in the following topics: