Do you mean type C # float?
float f = float.Parse(text);
Or...
float value;
if (float.TryParse(text, out value))
{
}
else
{
}
Please note that the code above will use the current culture. You can specify a different culture, for example
...
if (float.TryParse(text, out value, NumberStyles.Float,
CultureInfo.InvariantCulture))
...
EDIT: , double.
, float/double; , . decimal (#) NUMBER (SQL).