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
2.1m questions
2.1m answers
60 comments
57.0k users