Skip to content

Clamp an overflow to the largest finite value in the add tests - #1

Merged
mborland merged 1 commit into
cppalliance:masterfrom
ibmibmibm:overflow-largest-finite
Sep 17, 2026
Merged

mborland merged 1 commit into
cppalliance:masterfrom
ibmibmibm:overflow-largest-finite

Conversation

@ibmibmibm

@ibmibmibm ibmibmibm commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

- IEEE 754-2019 7.4: an overflow clamps to the largest finite value in the
  toward zero mode, and in the directed mode which points at zero for the sign.
- The 4 ddAdd cases had an infinity override. Boost.Decimal now clamps, so
  the original expected values apply again.

Ref boostorg/decimal#1460
@mborland
mborland merged commit 4716cbd into cppalliance:master Sep 17, 2026
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.

2 participants