• @[email protected]
        link
        fedilink
        2
        edit-2
        2 years ago

        long double future_time = static_cast(time(nullptr)) + (5.391247L * pow(10.0L, -44.0L))

        Fixed-precision arithmetic would probably be more appropriate here, but since I’m lazy, long double works. Although I am curious now if a long double has sufficient precision to give a meaningful value for this.

        • Dr. Bluefall
          link
          fedilink
          English
          12 years ago

          I feel like at some point, you’d need arbitrary precision and arbitrarily-sized real numbers in order to meaningfully represent it.