News for hackers. Stuff that matters.
Re:Posit floating point numbers: thin triangles and other tr... by adgjlsfhk1 on Thursday June 19, 2025 @05:25PM (#44322655)
relatedly, having the same ordering as signed ints just makes everything so much easier. You can just use your integer radix sort to sort your floats without having to deal with sign and nans first!
Re:Posit floating point numbers: thin triangles and other tr... by immibis on Thursday June 19, 2025 @05:49PM (#44322830)
So do floats if you don't care about NaN
Re:Posit floating point numbers: thin triangles and other tr... by tomsmeding on Thursday June 19, 2025 @07:09PM (#44323355)
They do not; if you sort as unsigned ints then negative floats sort above positive ones, and if you sort as signed ints then the negative range is reversed. IEEE floats are sign-magnitude, not twos-complement.