Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - What are the variables in VB?
What are the variables in VB?
1, integer

Integer refers to an integer between -32768 and +32767, which usually covers most possible numbers. If you think the number you want to use may exceed this range, consider defining it as Long.

2. Long

This data type is sometimes called a long integer. This data type can handle all numbers from -2 147483648 to +2 147483647. Unlike Integer, which uses 2 bytes, it uses 4 bytes of memory to store data.

3. Single

Single applies to numbers that require decimal points. Single can handle negative values from -3.402823E38 to-1.40 1298E-45 and positive values from 1.40 1298E_45 to 3.402823E38.

4, double

This data type requires 8 bytes of memory to store data. This data type is useful if you have to deal with a wide range of values.

5. Currency

This data type is mainly applicable to monetary values. It needs 8 bytes of memory to store data. This data type has a fixed number of decimal places (4 digits).

Step 6: rope

In addition, variables can be divided into global variables and local variables.