/*
 * A simple program that demonstrates floating point round off error.
 *
 */

#include <stdio.h>
#include <float.h>

int main(int argc, char* argv[])
{
  float a = 0.1;
  float b = 0;
  for (int i = 0; i < 1000000; i++) {
      b += a;
  }
  
  printf("1000000 * %f = %f\n", a, b);

  return 0;
}