kellyethridge / VBCorLib

The VBCorLib framework brings many of the powerful .NET classes to VB6.
http://www.kellyethridge.com/vbcorlib/
MIT License
112 stars 28 forks source link

BigInteger.ToString with exponent ("e") formatting larger than 3 digits fails #78

Closed kellyethridge closed 3 years ago

kellyethridge commented 3 years ago

When converting a BigInteger to a string with exponent formatting and the exponent is 4 digits, the '+' symbol is overwritten with the fourth digit.

Dim Number1 As BigInteger

Set Number1 = BigInteger.Pow(CBigInt(Int64.MaxValue), 53)
Debug.Print Number1.ToString("e")

Should output "1.377703e+1005", but outputs "1.377703e1005" instead.