I'm a complete beginner, trying to learn.
The code below compiles just fine, without any exceptions on my Mac version of Visual Studio Community.
However, in the PC version, "measurements[i] = Convert.ToDouble(Console.ReadLine());" results in a "System.FormatException error"
I would like to understand, the difference in how the mac version handles the exceptions i suppose?
Both the mac and PC projects are .NET 3.1 console applications.
double[] measurements = new double[3];
for(int i = 0; i < measurements.Length; i++)
{
Console.Write("Input a decimal number: ");
measurements[i] = Convert.ToDouble(Console.ReadLine());
}