Skip to content

Add Decimal.Amount#28

Merged
jessealama merged 23 commits intomainfrom
decimal-amount
May 14, 2025
Merged

Add Decimal.Amount#28
jessealama merged 23 commits intomainfrom
decimal-amount

Conversation

@jessealama
Copy link
Copy Markdown
Owner

The purpose here is to support the currently proposed Decimal.Amount primordial. See here for the details in the proposal-decimal repo.

Also, fix a big in Decimal128's `toPrecision` failing on integers.
Also, call our class "Decimal" rather than "Decimal128".
There are a couple of checks in one of the abstract operations that
seems pretty difficult to cover. It may actually be impossible, but I
haven't proved that yet. In the meantime, we'll downgrade the
requirement.
Having learned about c8 directives to ignore statements/conditionals, I
prefer to use that to mark lines that are difficult (or impossible) to
test rather than univerally downgrade our code coverage requirements.
@jessealama jessealama merged commit 0083dc8 into main May 14, 2025
1 check passed
@jessealama jessealama deleted the decimal-amount branch May 14, 2025 10:51
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.

1 participant