Divide integer in array and store it as double in array [closed]

for(int i = 0; i < iData; i++)
{
    if(hPred[i]<=jData[i])
    {
        akur[i] = hPred[i] / jData[i];
    }
    else if(hPred[i]>jData[i])
    {
        akur[i] = hPred[i] / jData[i];
        akur[i] = akur[i] - 1.000;
    }
}

I got some issues here. I wanted to divide data in hPred[] with jData[] and store it in an array as double(akur[]). Instead, I got this:

jData[]

hPred[] and the result(akur[])

RESULT

Answer

for(int i = 0; i < iData; i++){
    if(hPred[i]<=jData[i]){
        akur[i] = (float)hPred[i] / jData[i];
    }else if(hPred[i]>jData[i]){
        akur[i] = (float)hPred[i] / jData[i];
        akur[i] = akur[i] - 1.000;
    }
}

typecast any operand to float before division