Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

format string precision double java

public static String removeZero(double number) {
        DecimalFormat format = new DecimalFormat("#.###########");
        return format.format(number);
    }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #format #string #precision #double #java
ADD COMMENT
Topic
Name
4+2 =