to string 2 decimal places c# code example
Example: C# decimal with two places store as string with two places
public static string DoFormat( double myNumber )
{
var s = string.Format("{0:0.00}", myNumber);
return s;
}
public static string DoFormat( double myNumber )
{
var s = string.Format("{0:0.00}", myNumber);
return s;
}