News for hackers. Stuff that matters.
Re:Comparing Integers and Doubles by threeducks on Wednesday November 19, 2025 @04:05PM (#45985174)
What exactly do you say is not commutative? This Wikipedia article claims that at least floating-point addition and multiplication are both commutative:

https://en.wikipedia.org/wiki/Floating-point_arithmetic#Accu...

Re:Comparing Integers and Doubles by adgjlsfhk1 on Wednesday November 19, 2025 @04:17PM (#45985339)
it is for finite values, but because IEEE did some dumb things it isn't specified to be for NaN values (and on several architectures, isn't).