How to get decimal to n places precision in C# program for Pi
问题 With reg to this question Pi in C# I coded the below code and gives a output with last 6 digits as 0. So I want to improve the program by converting everything to decimal. I have never used decimal in C# instead of a double before and I am only comfortable with double in my regular use. So please help me with decimal conversion, i tried to replace all double to decimal at start and it didnt turn good :(. using System; class Program { static void Main() { Console.WriteLine(" Get PI from