Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

long to double in java

//It'll work upto three decimal places when converted from long to double
//Here, 'time' is a variable converted from long to double
double dble = Double.valueOf(String.format(Locale.ENGLISH, "%1$.3f",  time/3600.000));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #long #double #java
ADD COMMENT
Topic
Name
7+1 =