I just want to round the value which comes from datatable,Data comes from SQL to datable.Also datatable have null values i guess this the problem but please also you check for me
string Maxmonthlytable = Math.Round((decimal)monthlytable.Rows[u][3], 2, MidpointRounding.AwayFromZero).ToString();
I get the error ” when casting from a number the value must be a number less than infinity “
You could try: