Skip to content

Consider changing BigInteger behavior to support all numeric types in math method signatures #82

@kellyethridge

Description

@kellyethridge

Right now BigInteger and BigIntegerStatic only accept BigInteger type in the math method calls. Consider changing the signatures to Variant and converting to BigInteger in the method to allow support for other numeric types.

This currently results in a "Type Mismatch" error. It would be useful to allow such method calls.

Set Answer = BigInteger.Add(Int64.MaxValue, &h7FFFFFFF)

To achieve this now we need to use the CBigInt conversion method which can become unwieldy.

Set Answer = BigInteger.Add(CBigInt(Int64.MaxValue), CBigInt(&h7FFFFFFF))

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions