Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

set decimal point c#

decimalVar.ToString ("#.##"); // returns "" when decimalVar == 0

or

decimalVar.ToString ("0.##"); // returns "0"  when decimalVar == 0
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #set #decimal #point
ADD COMMENT
Topic
Name
3+5 =