convert string a to b code example
Example 1: convert string to float c
char myString = "6.88";
float x = atof(myString);
//x is now 6.88
Example 2: convert string to double c
Console.WriteLine(Convert.ToDouble("104.1169"));
char myString = "6.88";
float x = atof(myString);
//x is now 6.88
Console.WriteLine(Convert.ToDouble("104.1169"));