• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 285
  • Last Modified:

Large Number than Double in VB

Hello everyone,
I want to make a power function which operates on large numbers. Very Very large numbers.
Say a^b where
a=12345678910111213
b=100

I can take double & can work up to 11 digits or so, but I want it even more than that.
Can anyone suggest how I can work it out in VB 6.0.
Actually basically its an issue of datatype only. I want to have mechanism through which I can have larger datatype than the double.
0
sam1234594
Asked:
sam1234594
1 Solution
 
danaseamanCommented:
There are several projects that handle large numbers.
Here are a few:

BigNum Calculator(Correction 1 Jul 2007))
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=64895&lngWId=1

Big numbers library *BigNumLib*
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=62738&lngWId=1

BigMath 1.1 (updated July 8, 2007)
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=68710&lngWId=1


0
 
VBClassicGuyCommented:
Just use the Currency data type. Goes up to over 922 trillion.
922,337,203,685,477.5807 to be exact...
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now