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

StrToFloat

Convert string to floating point number

float StrToFloat(string& strVal);

Parameters

  • strVal - string containing a floating point number

Return Value

  • Returns the floating point value of the string

Remarks

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

Example

string strVal = "12.45";
float fVal = StrToFloat(strVal);

See Also

Last modified 7 years ago Last modified on 04/12/18 13:07:26
Note: See TracWiki for help on using the wiki.