warning Not Translated
This page has not been translated into the language that your browser requested yet. The English content is being shown as a fallback.
If you want to contribute a translation for this page then please click here.
strval
warning
This function starts with a lowercase letter.
Description
Convert a string to an integer.
Name | Description |
---|---|
const string[] | The string you want to convert to an integer. |
Returns
The integer value of the string. '0 if the string is not numeric.
Examples
new string[4] = "250";
new iValue = strval(string); // iValue is now '250'
Related Functions
- strcmp: Compare two strings to see if they are the same.
- strfind: Search for a substring in a string.
- strdel: Delete part/all of a string.
- strins: Put a string into another string.
- strlen: Check the length of a string.
- strmid: Extract characters from a string.
- strpack: Pack a string into a destination.
- strcat: Concatenate two strings into a destination reference.