Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# tostring decimal 2 places

decimalVar.ToString("0.00"); // returns "0.50"  when decimalVar == 0.5m
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #tostring #decimal #places
ADD COMMENT
Topic
Name
7+4 =