watch 02:53
GTA: The Criminal Enterprises - The Loop
Do you like this video?
Play Sound
An integer variable (declared with the int keyword) is a 32-bit signed integer. It can hold a value from -2,147,483,648 to 2,147,483,647.
Conversion[]
The integer data type can be converted using the following functions
Integer to float[]
int nInteger=12; float fFloat=0.0; fFloat=IntToFloat(nInteger);
- fFloat = 12.0
Integer to hex string[]
int nInteger=31; sString=""; sString=IntToHexString(int nInteger);
- sString = "0x0000001F"
Integer to string[]
int nInteger=31; sString=""; sString=IntToString(int nInteger);
- sString = "31"