Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - Difference and definition of long integer and integer in VB
Difference and definition of long integer and integer in VB
In vb6:

Integer, 2 bytes, range-215 ~+215-1(default operation)

Long, 4 bytes, ranging from-231~+231-1.

In vb.net:

Integer, 4 bytes, range-231~+231-1.

Long, 8 bytes, with values ranging from-263 to+263-1.

In vb6, Long is slightly faster than Integer.

In VB.NET, Integer is faster than Long on 32-bit CPU, and it is almost the same in theory on 64-bit CPU.