Hacker News new | ask | show | jobs
by Garora 1610 days ago
Hi,

What browser and device are you on? And what result does it show

2 comments

I feel like this thread is my job in microcosm :D
For 99999 x 9999:

Firefox 96 displays 999889984

Edge 97 displays 999890001

The answer should be 999890001, so Edge is right and Firefox is wrong

Multiplying the 32bit floats 99999.0f and 9999.0f results in 999889984 (Firefox's result). So I guess this hints at what Firefox might be doing :)

Float multiplication's result: https://godbolt.org/z/q857f51GP

Thanks,