Skip to content

Comments

Convert UInt128->float/Half with correct rounding#122170

Open
LEI-Hongfaan wants to merge 4 commits intodotnet:mainfrom
LEI-Hongfaan:double_rounding-1
Open

Convert UInt128->float/Half with correct rounding#122170
LEI-Hongfaan wants to merge 4 commits intodotnet:mainfrom
LEI-Hongfaan:double_rounding-1

Conversation

@LEI-Hongfaan
Copy link
Contributor

@LEI-Hongfaan LEI-Hongfaan commented Dec 4, 2025

Contributes to #112474

@github-actions github-actions bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Dec 4, 2025
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Dec 4, 2025
@jkotas jkotas added area-System.Numerics and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels Dec 4, 2025
Copy link
Member

@huoyaoyuan huoyaoyuan left a comment

Choose a reason for hiding this comment

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

It's better to define some reusable generic math methods like BFloat16.RoundFromSigned, at least for same target FP type.

We also need tests added for the corner case it handles.

Copy link
Member

@jeffhandley jeffhandley left a comment

Choose a reason for hiding this comment

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

@LEI-Hongfaan Please add tests for the scenarios this addresses, and expand the PR description to describe which scenarios are now handled and which scenarios remain unresolved.

@jeffhandley jeffhandley added the needs-author-action An issue or pull request that requires more info or actions from the author. label Feb 1, 2026
@dotnet-policy-service
Copy link
Contributor

This pull request has been automatically marked no-recent-activity because it has not had any activity for 14 days. It will be closed if no further activity occurs within 14 more days. Any new comment (by anyone, not necessarily the author) will remove no-recent-activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-System.Numerics community-contribution Indicates that the PR has been added by a community member needs-author-action An issue or pull request that requires more info or actions from the author. no-recent-activity

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants