Skip to content

Document breaking change: Complex special-value results now follow C23 Annex G - #55230

Merged
gewarren merged 3 commits into
mainfrom
copilot/breaking-change-complex-special-value-results
Aug 5, 2026
Merged

Document breaking change: Complex special-value results now follow C23 Annex G#55230
gewarren merged 3 commits into
mainfrom
copilot/breaking-change-complex-special-value-results

Conversation

Copilot AI commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

System.Numerics.Complex arithmetic operators and math functions now delegate to the new Complex<double> type, which produces C23 Annex G-conformant special-value results (signed zeros, infinities, NaNs) instead of the previous (NaN, NaN) fallback for many non-finite inputs.

Changes

  • Added docs/core/compatibility/core-libraries/11/complex-annex-g-special-values.md describing the previous vs. new behavior, affected APIs, and recommended action
  • Registered the new article in docs/core/compatibility/11.md (Core .NET libraries table)
  • Added the corresponding entry to docs/core/compatibility/toc.yml

Example from the new article

using System.Numerics;

// Previously: (NaN, NaN)
// Now: (+∞, +∞)
new Complex(double.PositiveInfinity, double.PositiveInfinity) * new Complex(1.0, 0.0);

Internal previews

File Preview link
docs/core/compatibility/11.md docs/core/compatibility/11
docs/core/compatibility/core-libraries/11/complex-annex-g-special-values.md docs/core/compatibility/core-libraries/11/complex-annex-g-special-values
docs/core/compatibility/toc.yml docs/core/compatibility/toc

Copilot AI review requested due to automatic review settings August 4, 2026 21:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because there is no eligible user to bill. To allow Copilot reviews on bot-authored pull requests, enable direct organization billing in your organization's Copilot settings.

Co-authored-by: gewarren <24882762+gewarren@users.noreply.github.com>
Copilot AI changed the title [WIP] Update System.Numerics.Complex to follow C23 Annex G requirements Document breaking change: Complex special-value results now follow C23 Annex G Aug 4, 2026
Copilot AI requested a review from gewarren August 4, 2026 21:17
Comment thread docs/core/compatibility/core-libraries/11/complex-annex-g-special-values.md Outdated
Comment thread docs/core/compatibility/core-libraries/11/complex-annex-g-special-values.md Outdated
Comment thread docs/core/compatibility/core-libraries/11/complex-annex-g-special-values.md Outdated
@gewarren
gewarren marked this pull request as ready for review August 5, 2026 16:18
@gewarren
gewarren requested a review from a team as a code owner August 5, 2026 16:18
Co-authored-by: gewarren <24882762+gewarren@users.noreply.github.com>
Copilot AI requested a review from gewarren August 5, 2026 16:20
@gewarren
gewarren requested a review from tannergooding August 5, 2026 16:25
@gewarren
gewarren merged commit 60feff8 into main Aug 5, 2026
12 checks passed
@gewarren
gewarren deleted the copilot/breaking-change-complex-special-value-results branch August 5, 2026 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Breaking change]: System.Numerics.Complex special-value results now follow C23 Annex G

4 participants