// Test floating point arithmetic...
#include <stdio.h>

int main( int argc, char** argv )
{ // calculate the sum of 1E9 precise numbers
  int n = 0;
  float sum;
  float limit = 1.0E9;
  for( sum = 0.0; sum < limit; sum += 1.0 ) {
    n++;
    if ((n % 100000) == 0) {
      printf("n=%d     sum=%f     target=%f\n", n, sum, (n*1.0));
    }
  }
  printf("sum is %f  compared to %f\n", sum, (n*1.0));
}
