On Thursday, 11 January 2018 at 20:35:03 UTC, kdevel wrote:
   printf ("%.2f\n", d);

This must read

   writefln ("%.2f", d);

Would have expected a compile time/run time error.

This prints:

   0.735
   0.00      <--- expected: 0.74

Good. writefln prints the expected value.

   0.735
   0.73
             <--- loop output missing

This is still missing. If I change the while-loop threshold to 1e-9 the values are printed.

Reply via email to