Why does 0.ToString("#.##") return an empty string? Shouldn't it be 0.00 or at least 0?
0.ToString("#.##")
0.00
# 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.
1.4m articles
1.4m replys
5 comments
57.0k users