wiki:Docs/Prog/Manual/ApplicationLibraries/lib825ev/String/StrToInt

Version 3 (modified by Don Wilson, 7 years ago) ( diff )

--

StrToInt

Convert string to integer number

int StrToInt(string& strVal);

Parameters

  • strVal - string containing an integer number

Return Value

  • Returns the integer value of the string

Remarks

If the string does not contain a number the result will be zero.

Example

string strVal = "123";
int nVal = StrToInt(strVal);

See Also

Note: See TracWiki for help on using the wiki.