It's very basic but I have problem getting the absolute value of a double type; here:

when I try to get the absolute value of the subtraction of two doubles I receive a large value which should be an address.Code:`double *Dist_cb1= new double[2400];`

for (i=0; i<2400; i++){

Dist_cb1[i]=0;

for (j=0; j<6; j++)

Dist_cb1[i] = Dist_cb1[i] + abs(abs(Dataf[j] - train1[i][j])); printf("%f ", Dist_cb1[i]);

}