using System;
public class Program
{
public static void Main()
double testVar = 3571094.111;
var res = testVar.ToString("N2");
Console.WriteLine(res);
var res1 = string.Format("{0:#,0.00}",testVar);
Console.WriteLine(res1);
var res2 = Math.Round(testVar);
Console.WriteLine(res2);
var res3 = Math.Round(testVar,2);
Console.WriteLine(res3);
}