Sunday, August 7, 2011

Convert ToDecimal 2 places decimal C#

 
decimal rstval = Convert.ToDecimal(cortans) / Convert.ToDecimal(totrec) * 100;
 string rstvalfl = rstval.ToString("#.##");

No comments: