Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - When to use integer, long integer, single precision number and double precision number in vb?
When to use integer, long integer, single precision number and double precision number in vb?
Is there a clerical error upstairs? The range of integer data is wrong.

The range of integers should be -32768~32767, which is commonly used. When using integers, consider first.

When the data is large, that is, more than 32767, long integers are used. .

Single precision is mainly suitable for decimals, but the precision is not very high, with 6 digits after decimal point.

Double precision is also applicable to decimals, with higher precision, and can also be used for scientific counting.