Next Continued Fraction Arithmetic 8

Decimal arithmetic

        #include <stdio.h>
        int main(void) {
          unsigned i;
          double total = 0;
          for (i=0; i < 300; i++) 
            total += 1.0/3.0;
          printf("%.20f\n", total);
          return 0;
        }
        99.99999999999965893949

Next   Back