Java doble a largo
long num = Double.valueOf(d).longValue()
DevPedrada
long num = Double.valueOf(d).longValue()
Long l = new Long(15552451L);
double d = l.doubleValue();
//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));