You have used the concept of string interpolation while writing the C# code snippet given below.
const int FieldWidthRightAligned = 20; Console.WriteLine($"{Math.PI,FieldWidthRightAligned:F3}");
In this context, which of these is the correct output of the code snippet?
Options
- 3.142
- 3.14
- 3.1
- 3.1415