Good evening guys,
I'm trying to solve a challenge in C # but when I try to convert two variant strings with dot (Ex. 1.0 7.0) to two double variables, it loses the point and gets 10 70. Can anyone tell me what I'm doing wrong? / p>
double x1 , x2;
Console.WriteLine();
value = Console.ReadLine();
String[] substrings = value.Split(delimiter);
x1 = Convert.ToDouble(substrings[0]);
x2 = Convert.ToDouble(substrings[1]);