About a week ago, I tried to find a good VB class for handling large numbers. The only thing I could find was a .dll written in C, so I thought I'd try to cook up one written in VB to get a little coding practice. Attached is what I came up with. It handles signed, floating point numbers up to roughly the length of the max value of an Integer. It can perform all simple math functions (add, subtract, multiply, divide, integer divide, modulus), raise numbers to positive and negative integer powers, and can evaluate greater than and less than. For good measure, I also put in functions to convert to and from any base from 2 to 35, a reciprocal function, a crude formatter, and 6 bitwise operations.
Everything works as far as I can tell, but I was wondering if anyone could test it a little bit before I put it in the code bank.
Last edited by Comintern; Dec 22nd, 2005 at 07:04 PM.
Reason: Update attachment.