Integer
From NWNWiki
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.
Contents |
[edit] Conversion
The integer data type can be converted using the following functions
[edit] Integer to float
int nInteger=12; float fFloat=0.0; fFloat=IntToFloat(nInteger);
- fFloat = 12.0
[edit] Integer to hex string
int nInteger=31; sString=""; sString=IntToHexString(int nInteger);
- sString = "0x0000001F"
[edit] Integer to string
int nInteger=31; sString=""; sString=IntToString(int nInteger);
- sString = "31"
