int

System.Int32
(32 bits) -2,147,483,648 to 2,147,483,647


System.Int32 myInt; 
int myInt;

myInt = 7;
myInt = 2;
myInt = 7/2; '= 3 not 3.5

Converting

// Integer to Long 
int myInt = 2;
long myLong = myInt;

// Integer to Short
int myInt = 2;
short myShort = myInt;

// Integer to Float
int myInt = 2;
float myFloat = myInt; ' implicit

Examples



© 2024 Better Solutions Limited. All Rights Reserved. © 2024 Better Solutions Limited TopPrevNext