MSDN provides a digit placeholder example:
1234.5678 ("#####") -> 1235
I found this confusing (I expected 1234 or something), so I wrote this snippet in C# to test it:
Console.WriteLine(String.Format("{0:#}", 1234.5678));
Console.WriteLine(String.Format("{0:#####}", 1234.5678));
Console.WriteLine(String.Format("{0:#}", "1234.5678"));
Console.WriteLine(String.Format("{0:#####}", "1234.5678"));
It gives this output:
1235
1235
1234.5678
1234.5678
Please explain.