Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / COM / June 2005



Tip: Looking for answers? Try searching our database.

VB addin for dealing with extremely large number?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jim K - 22 Jun 2005 13:56 GMT
I am modifying a program I built in VB6 over 5 years ago. I now need the
program to deal with extremely large numbers. I deal with a lot of
extremely large variances. Is there any program out there that can be
added to VB that allows the multiplying of numbers larger than long data
types.

Thanks

Jim K
Las Vegas, Nevada
MikeD - 22 Jun 2005 14:19 GMT
>I am modifying a program I built in VB6 over 5 years ago. I now need the
> program to deal with extremely large numbers. I deal with a lot of
> extremely large variances. Is there any program out there that can be
> added to VB that allows the multiplying of numbers larger than long data
> types.

Why not re-write your program to use Doubles instead of Longs? Just be aware
that this *could* introduce floating point discrepencies that you'd need to
deal with (if you'll only be assigning integer values to Double data types,
then you don't need to worry about it).  A Double's range is
4.94065645841247E-324 to 1.79769313486232E308 (for positive numbers).

You could also use a Decimal, which has a range of
+/-79,228,162,514,264,337,593,543,950,335 (if no decimal point). The Decimal
data type is actually a Variant.  Use the CDec function to convert to a
Decimal subtype.

If you need numbers outside those ranges, then VB is probably not the
language you should be using.

Signature

Mike
Microsoft MVP Visual Basic

Jim K - 22 Jun 2005 18:33 GMT
Mike:

Thank you so much. I will try to CDec. I have so many forms that use
numbers and calculations from other forms I do not want to re-write.

Jim K
Las Vegas, Nevada
Casey Provance - 22 Jun 2005 14:20 GMT
Dim variable as Double?

- Kev

>I am modifying a program I built in VB6 over 5 years ago. I now need the
> program to deal with extremely large numbers. I deal with a lot of
[quoted text clipped - 8 lines]
>
> *** Sent via Developersdex http://www.developersdex.com ***
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.