Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# tostring decimal 2 places

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