#include <stdio.h>
int main()
{
int iBAF=10;
int iPlots=14;
double dblFactor;
dblFactor=iBAF/iPlots; //to get a floating point you need a cast!
printf("dblFactor = %10.6f\n",dblFactor);
return 0;
}
/*
dblFactor = 0.000000
*/
I thought C/C++ would offer a few benifits beyond pure assembler. Apparently I was wrong.