Skip to content

Interoperation between BigInt and BigDecimal #39

@littledan

Description

@littledan

Several people have independently raised the idea that BigInt and BigDecimal could transparently work together. For example, Fabrice Bellard wrote:

BigInt compatibility: it would make sense to allow mixing BigInt and
BigDecimal in binary operations (the result would be a BigDecimal). On
the other hand it is simpler to require identical types for both operands.

While we could allow this mixed operation, I'd prefer to start out with strictness, following the pattern established by BigInt. I want to continue to encourage a programming style of being consistent about numeric types.

In personal communication, Fabrice responded, "I prefer strictness too."

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions