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?

Related Questions

Two methods in Visual Basic to store value?

dim value1 as integer dim value2[3] as integer


How would you write Visual Basic Code to declare an Integer variable called intNumber?

Dim intNumber As Integer


How do you calculate a loop in visual basic 2010?

For i as integer = 1 to 10 ....... Next i


What is used to declare variables in Visual Basic?

declaration of variable is dim a as integer


What is rounding in Visual Basic?

Rounding in Visual Basic is the method of rounding an integer up, or flooring an integer, which is rounding down. To round up, you use the System.Math.Round function. To round down, or floor, you use the System.Math.Floor function.


When defining a variable in visual basic what key word appear at the beignning of the statement?

Dim x as integer = 7


What is visual basic control?

Visual Basic Controls work on Visual Studio for Visual Basic and Applications that made by Visual Basic.


The year of invention of visual basic?

Visual Basic was started in 1991.


Who invented the visual basic?

Visual Basic was created by a team at Microsoft.


Who developed visual basic?

Microsoft is the developer of visual basic


What is the difference between visual basic and visual c?

The programming language: Visual Basic is a BASIC-like (or BASIC-derived) language, Visual C is... well C.


What is the role of cursor in visual basic?

The <Cursor> function can get the location of the cursor or set the location of the cursor. Dim X as integer = Cursor.Position.X Dim Y as integer = Cursor.Position.Y Cursor.Position = New Point(X, Y) Like that.