Having trouble with Math.Min within a method. keeps initialising back to 0
//Current method public GradeStatistics ComputeStatistics() { GradeStatistics stats = new GradeStatistics(); float sum = 0; foreach (float grade in grades) { stats.HighestGrade = Math.Max(grade, stats.HighestGrade); stats.LowestGrade = Math.Min(grade, stats.LowestGrade); sum += grade; } stats.AverageGrade = sum / grades.Count; return stats; } // Current Main static void Main(string[] args) { GradeBook book = new GradeBook(); book.AddGrade(91); book.AddGrade(56.5f); book.AddGrade(75); GradeStatistics stats = book.ComputeStatistics(); Console.WriteLine(stats.AverageGrade); Console.WriteLine(stats.HighestGrade); Console.WriteLine(stats.LowestGrade); } Has no issues running the average or highest. but for some reason stats.LowestGrade keeps giving me the default value, instead of 56.6f any help would be much appreciated