News for hackers. Stuff that matters.
Re:9999999999999999.0 – 9999999999999998.0 by zokier on Thursday January 11, 2024 @01:06PM (#38956069)

    #include<stdio.h>

    int main(void) {
      long a = (float)9999999999999999;
      long b = 9999999999999998;
      printf("%ld - %ld = %ld\n", a, b, a-b);
    }

produces

    10000000272564224 - 9999999999999998 = 272564226

There are no comments on this comment yet.