Comment

Comment by withinboredom

This is incorrect. Very incorrect and disastrously so. Drop 0.3 in here: https://www.h-schmidt.net/FloatConverter/IEEE754.html

You can also drop 524535643, an integer clearly less than 2^53 and is off by 5.

This is even seen here:

    #include <stdio.h>

    int main() {
            float b = 524535643.0f;
            printf("%f", b);
            return 0;
    }
output: 524535648.000000

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton