I am working with the following question
Using system;
namespace StringToNumerics
{
class Trial
{
static void Main(string[] args)
{
string division = "10/5";
double divided = Convert.ToDouble(division);
Console.WriteLine("divided {0} : ", divided);
Console.ReadKey();
}
}
}
However I am given an error that the input string is not in the correct format? How to fix this.
System.FormatException: 'Input string was not in a correct format.'