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.00      <--- expected: 0.74

Good. writefln prints the expected value.

             <--- 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