Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

leave two decimal in double c#

double var = 123.4567;
String myStr = String.Format("{0:0.00}", var);      
// "123.46"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #leave #decimal #double
ADD COMMENT
Topic
Name
6+9 =