[Solved] c# round to two decimal places [closed]


Please add excepted result and the purpose on your question.
Check this:

    List<decimal> abc = new List<decimal> { 500, 500 };
    List<decimal> abcd = new List<decimal> { 12, 100 };
    var cd = string.Join(",", abc.Zip(abcd, (q1, q2) => Math.Round(q2 / q1 * 100.00M, 2)));

solved c# round to two decimal places [closed]