string to double
double d=0;
d=Convert.ToDouble(string s);
string to float
float f=0.0f;
float.TryParse(string s,out f);
string to double
double d=0;
d=Convert.ToDouble(string s);
string to float
float f=0.0f;
float.TryParse(string s,out f);