// Test floating point arithmetic...
public class aufg05_3 {
  public static void main( String args[] ) {
    // calculate the sum of many (precise) numbers
    long n = 0;
    float sum = 0; float limit = 1.0E8f;
    for( sum = 0.0f; sum < limit; sum += 1.0f ) {
      // if ((n % 100000) == 0) {
      //   System.out.println("n="+n + " sum="+sum + " target="+(n*1.0));
      // }
      n++;
    }
    System.out.println("sum is " + sum + " compared to " + (n*1.0));
  }
}
