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
>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
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 ***