• corroded@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    1 year 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.