Hi, I am making a algorithm that is very important the value of the numbers, but I have some problems, for example I need to do this operation: 1.0/14709204.0, after for I know the result of the operation I write the result of operation in one file, for example I do this:
Code:
FILE* tot = fopen("total.txt", "wb");
char buffft [2000];
sprintf (buffft,"%f",1/14709204);
fwrite(buffft,1,strlen(buffft),tot);
After I open the file total.txt I can see 0.000000, and the correct result is :6.798464417*10-8, I need this result, can someone help me please?any idea?
Thanks.