Why does 0.ToString("#.##")
return an empty string? Shouldn't it be 0.00
or at least 0?
#
in the string format indicate that the value is optional. If you wish to get the output 0.00
you need the following:
0.ToString("0.00");
See here for the custom numeric formats that can be passed to this method.