leave two decimal in double c#

82

leave two decimal in double c# -

double var = 123.4567;
String myStr = String.Format("{0:0.00}", var);      
// "123.46"

Comments

Submit
0 Comments