fixed double *scanDouble(double *dest, int dest_len)