parseFloat /String

float parseFloat(string str)

Parses a string into a float.

Sample:

string str = "0.456";
float value = parseFloat(str);