Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #decimal #places #store #string #places
ADD COMMENT
Topic
Name
7+7 =