Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# tostring decimal 2 places

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