Functions Documentation |
|
Name |
int |
Syntax |
(int string) |
Argument List |
string: a string you want returned as number |
Returns |
number: the integer version of the string |
Category |
0.99, string operator
|
Description |
Takes a string representation of a number and returns it as an actual number. I can also convert hexadecimal strings. |
Example |
(int "2")
Returns 2
(int 2)
Returns 2
(int "two")
Returns 0
(int "0xDCBA")
Returns 56506 |
Comment |
Very useful function for converting a string to an integer. Eg. after storing a integer on a space object, it will be returned as a string. Use this function to convert it back to a number. Can also convert hexadecimal strings to integers. |