I want to get the Max value between 2 numbers, if they are the same return that values.
Each line in debug shows a value. except for d3 where the value should be placed after it determines the highest value.
Ideas of what I'm doing wrong?
decimal d1 = decimal.Parse(string.IsNullOrEmpty(rows.Cells[41].Value.ToString()) ? "0" : rows.Cells[41].Value.ToString());
decimal d2 = decimal.Parse(string.IsNullOrEmpty(rows.Cells[46].Value.ToString()) ? "0" : rows.Cells[46].Value.ToString());
decimal d3 = decimal.Parse(string.IsNullOrEmpty(rows.Cells[37].Value.ToString()) ? "0" : rows.Cells[37].Value.ToString());
decimal AL = Math.Max(d1, d2);
AL = Math.Max(d3,AL);Booney440