Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VB datatypes size

Tags:

vb6

In VB 6,is there any way to get the variable size greater than Long? I have to display the data which is exceeding the size of Long on the same page?

like image 245
Pradeep Avatar asked Aug 10 '09 06:08

Pradeep


2 Answers

Very similar to this question on VB6 data types. Here are some options from the VB6 manual topic on data types

Type Description Size Min Max Notes
Long Long Integer 4 bytes -2,147,483,648 2,147,483,647
Single Single-precision floating-point 4 bytes -3.402823E38 (negative values)
1.401298E-45 (positive values)
-1.401298E-45 (negative values)
3.402823E38 (positive values)
About 6 or 7 significant figures accuracy.
Double Double-precision floating-point 8 bytes -1.79769313486231E308 (negative values)
4.94065645841247E-324 (positive values)
-4.94065645841247E-324 (negative values)
1.79769313486232E308 (positive values)
About 15 or 16 significant figures accuracy.
Currency Scaled integer 8 bytes -922,337,203,685,477.5808 922,337,203,685,477.5807
Decimal 14 bytes +/- 79,228,162,514,264,337,593,543,950,335
(no decimal point)
+/- 7.9228162514264337593543950335
(with 28 places to the right of the decimal)
Smallest non-zero number is +/-0.0000000000000000000000000001
like image 129
MarkJ Avatar answered Oct 30 '22 03:10

MarkJ


The Currency data type.

It is 8 bytes and supports values in the range -922,337,203,685,477.5808 to 922,337,203,685,477.5807.

VBA Datatype Summary

like image 25
Mitch Wheat Avatar answered Oct 30 '22 01:10

Mitch Wheat