PDA

View Full Version : biginteger



sherlockmeister
03-24-2008, 08:13 PM
heres a truly useless include that i wrote for fun but its pretty cool. basically a integer type that has and unlimited max value. the functions are pretty much self explanatory. few things worth noting is that it does not follow twos complement rules like normal ints so not, shr, shl, xor, or, and all have different return values than usual and are always positive. and BStrToInt and BIntToStr are significantly faster than their extended counterparts but you can only use a radix of 2,4,8,16,32 versus 2-36. well thats all i can really think of right now so if you have any question or comments feel free to post.

edit: oops i forgot you remove the "program new;" for includes, fixed

MylesMadness
03-24-2008, 10:15 PM
Wow, You know alot of math functions.