SyntaxFix
Write A Post
Hire A Developer
Questions
double d = 3.1493745; string s = $"{d:0.00}"; // or $"{d:#.##}" Console.WriteLine(s); // Displays 3.15