What is the difference between ToString("N2") and ToString("0.00")?
ToString("N2")
ToString("0.00")
From Standard Numeric Format Strings
The number is converted to a string of the form "-d,ddd,ddd.ddd…", where '-' indicates a negative number symbol if required, 'd' indicates a digit (0-9), ',' indicates a thousand separator between number groups, and '.' indicates a decimal point symbol.
It would seem that N will include thousands separators, whereas 0.00 will not.
N
0.00
See also Custom Numeric Format Strings
1.4m articles
1.4m replys
5 comments
57.0k users