Simple program to get the minimum value from the List of decimal numbers

Amatya
Posted by Amatya under C# category on | Points: 40 | Views : 131
Simple program to get the minimum value from the List of decimal numbers


var dnfnum = new List<decimal> { 10.7m, 42.2m, 5.1m, 86.5m };
decimal dnfmin = dnfnum.Min();


Result
dnfmin : 5.1

Thanks

Comments or Responses

Login to post response