VBCorLib icon indicating copy to clipboard operation
VBCorLib copied to clipboard

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

Open kellyethridge opened this issue 4 years ago • 0 comments

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))

kellyethridge avatar Oct 16 '20 22:10 kellyethridge