Monday, June 27, 2016

Display 4 decimal place in double.



double a = 23.22;
           string msg = string.Format("E format: {0:N4}", a);
           MessageBox.Show(msg);

No comments:

Post a Comment