c# double to string 2 decimal places 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;
}