Skip to content

Conversation

fsateler
Copy link
Contributor

@fsateler fsateler commented Sep 8, 2025

This allows user code to be more generic, not having to care
about the specific class.

Preserve the BigDecimal override to allow returning the same object.

--

This is a PoC PR. I don't know if this is desired. But my intuition would be that all Numeric types should be convertible to BigDecimal, with the same interface. What do you think?

Builds on top of #421 to avoid conflicts

@fsateler fsateler changed the title feature/numeric to d Implement to_d in Numeric and with the same number of arguments everywhere Sep 8, 2025
…where

This allows user code to be more generic, not having to care
about the specific class.

Preserve the BigDecimal override to allow returning the same object.
@fsateler fsateler force-pushed the feature/numeric-to-d branch from f66b7dc to 7dbbe1d Compare September 9, 2025 12:10
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