Why does ArrayToFile(...) function
write to file only 6-digits after comma
while I have written into array such number: 3.56585255115
in file there were such numbers:
3.565853 and 5.526585
Below there is a snippet of my program \/
===========================================================
scanf ("%d%d", &N_row_samples, &K_col_harmonic);
ptr_matrix=malloc(N_row_samples*K_col_harmonic*sizeof(double));
for ( i = 0; i < N_row_samples; i++ )
for (j = 0; j < K_col_harmonic; j++ ) {
if(i<3) ptr_matrix[(i*K_col_harmonic)+j] = 3.56585255115;
else ptr_matrix[(i*K_col_harmonic)+j] = 5.52658514552;
ArrayToFile ("file.dat", matrix, VAL_DOUBLE,
(N_row_samples*K_col_harmonic), N_row_samples,
V
AL_GROUPS_TOGETHER, VAL_GROUPS_AS_ROWS, VAL_SEP_BY_TAB,
30, VAL_ASCII, VAL_TRUNCATE);
===========================================================