This will work:
timeold = "12.84";
time = timeold.match(/(\d+)(\.\d+)?/);
if (time[2] >= .60) {
time[2] = time[2] - .60;
time[1] = parseInt(time[1]) + 1;
}
alert(time[1] + time[2]);
7
solved Convert hours to correct division by 60 minutes