Good morning, I have the following problem I get in a variable of type Long a conversion of milliseconds to hours, but I need to store them in a Float type variable.
tiempos.setFechaHoraFinal(fechaActual);
tiemposFacade.edit(tiempos);
Long diferencia = tiempos.getFechaHoraInicio().getTime() - tiempos.getFechaHoraFinal().getTime();
long resultado = TimeUnit.MILLISECONDS.toHours(diferencia);
tiempos.setTotalHoraHombre(diferencia.floatValue());
I need to set the variable 'result' in
tiempos.setTotalHoraHombre(diferencia.floatValue());