Minimum value Command prompt can handle?
Hi,
I am having a problem with (at least I think it is, maybe it is not) with minimum value Command prompt can handle.
For to say, that I am not a programmer, nor I have any knowledge of it. I am just using a C file a friend of mine wrote for me. Here is the code:
Code:
#include<stdio.h>
#include<math.h>
void main(){
double f0;
double n31,n32,n33,f;
double A=0.373;
printf("# f0, f, n31, n32,n33\n");
for(f0=1.0e-26;f0<=1.0e-5;f0=f0*pow(10.0,0.02)){
n31=-2.0+floor(1.29*pow(f0,-0.25));
n32=-2.0+floor(A*pow(f0,-0.25)*(12.0)*sqrt((n31+2.0)/(11.0*n31+43.0)));
n33=-2.0+floor(A*pow(f0,-0.25)*(41.5692)*sqrt((n31+2.0)/(11.0*n31+43.0)*(n32+2.0)/
(11.0*n32+43.0)));
f=pow(13.5,1.5)*f0*pow(n31+2.0,-2.0)*pow(n32+2.0,-2.0)*(n33+2.0,-2.0);
printf("%g %g %i %i %i\n",f0,f,(int)n31,(int)n32,(int)n33);
}
}
I am using Codeblocks to run it.
The problem I am having is with "f0" variable. Even thought it is defined to be between 1.0e-26 and 1.0e-5 the most lower value of "f0" I am getting when I run it in Codeblocks is: 1.20226e-11
http://img442.imageshack.us/img442/8139/n33fh.jpg
Why is that?
Is there some minimum value Comand prompt can handle (something like 1e-11 ?)
Thank you for the reply.
P.S.
I asked the same question on the Codeblocks official forum, and they told me, this is a programming, not a Codeblocks issue, and rejected to reply further more.