answersLogoWhite

0

In the computer programming language Visual Basic, the data type integer is a whole number which can be used in calclations. It can be positive, negative, or zero. The default type of integer is 32-bit, but with "short" and "long" you can have 16- or 64- bit answers. The short data type works well with small numbers and saves RAM space. If overflow is a problem, long works better because of its larger capacity. To take the integer portion of a decimal, single, or double, use the int() function.

int(3.925604) returns 3 as a decimal

To convert a data type to integer, use cint()

cint(int(3.925604)) returns 3 as an integer

User Avatar

Wiki User

15y ago

What else can I help you with?