I need double value to be rounded to 2 digits. What is preferrable?
String.Format(\"{0:0.00}\", 123.4567); // \"123.46\" Math.Round(123.4567, 2)
If you want to return this value as a string then String.Format is better and if you want to return this value as a double in that case Math.Round is better. It totally depends on your requirement.
string
String.Format
double
Math.Round