You seem to be printing out pp.x
3 times, never using the other 2 variables, because the zero in {0:f4}
specifies the first parameter after the format string itself -- pp.x
.
string h = "Hello";
string w = "World!";
Console.WriteLine("{0} {1}, it is {2}.", h, w, DateTime.Now);
This silly example should make it more clear. Also notice that this overload of Console.WriteLine
formats text just like string.Format
.
More info here.