I have a double[] on which a LINQ operation is being performed:

MD = MD.Select(n => n * 100 / MD.Sum()).ToArray();

In some cases, all elements of MD are 0 and then Sum is also zero. Then 0 * 100 = 0 / 0, but it is not giving a divide-by-zero exception or any exception. Why is this so?

Edit
Report