Dear all,
I need to do multiplication of thousands of floating points in C, here are some values:
4.7167839616062 8e-09
0.0722222262576 93
4.7167839616062 8e-09
0.0111111157230 777
I need to read these values from a file, then do multiplication of them. I use
However, I always get some very funny values. When I change long double to double, it also fails.
Anyone can help me?
Thank you very much!
I need to do multiplication of thousands of floating points in C, here are some values:
4.7167839616062 8e-09
0.0722222262576 93
4.7167839616062 8e-09
0.0111111157230 777
I need to read these values from a file, then do multiplication of them. I use
Code:
long double *value; value = (long double *)malloc(n * sizeof(long double)); for(i = 1...n) fscanf(fp, "%lf", value[i]);
Anyone can help me?
Thank you very much!
Comment