Skip to content

Clarify IEEE 754 compliance for floating-point types and decimal - #56612

Merged
BillWagner merged 1 commit into
dotnet:mainfrom
SkyDevLab:fix/33523-clarify-decimal-ieee-754
Oct 27, 2026
Merged

BillWagner merged 1 commit into
dotnet:mainfrom
SkyDevLab:fix/33523-clarify-decimal-ieee-754

Conversation

@SkyDevLab

@SkyDevLab SkyDevLab commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Clarifies IEEE 754 compliance in the floating-point numeric types reference:

  • Notes that float and double conform to the IEEE 754 binary floating-point specifications (binary32 and binary64).
  • Notes that decimal is not an IEEE 754 floating-point format (such as decimal128), does not support NaN or infinity, and represents decimal numbers using a 96-bit integer mantissa scaled by a power of 10.

Fixes #33523


Internal previews

File Preview link
docs/csharp/language-reference/builtin-types/floating-point-numeric-types.md Learn preview

Build report

@SkyDevLab
SkyDevLab requested a review from BillWagner as a code owner October 26, 2026 17:37
@dotnetrepoman dotnetrepoman Bot added this to the October 2026 milestone Oct 26, 2026
@dotnet-policy-service dotnet-policy-service Bot added okr-quality Content-quality KR: Concerns article defects (bugs), freshness, or build warnings. dotnet-csharp/svc lang-reference/subsvc community-contribution Indicates PR is created by someone from the .NET community. labels Oct 26, 2026

@BillWagner BillWagner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This LGTM, and I'll :shipit: now.

@BillWagner
BillWagner enabled auto-merge (squash) October 27, 2026 12:38
@BillWagner
BillWagner merged commit 1321d7a into dotnet:main Oct 27, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution Indicates PR is created by someone from the .NET community. dotnet-csharp/svc lang-reference/subsvc okr-quality Content-quality KR: Concerns article defects (bugs), freshness, or build warnings.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clarify that System.Decimal is not IEEE-754 compliant in documentation

2 participants