News for hackers. Stuff that matters.
Re:Posit floating point numbers: thin triangles and other tr... by kbolino on Thursday June 19, 2025 @08:23PM (#44323755)
It seems that posits have a value called NaR ("not a real") which serves the purpose of all the special values (including both infinities) in IEEE floats. There are some key differences though:

  NaR (posits)                 NaN (floats)
  ------------                 ------------
  one bit pattern              many different bit patterns
  always equal to itself       never equals itself
  less than all other values   falsifies all orderings
Re:Posit floating point numbers: thin triangles and other tr... by dnautics on Monday June 23, 2025 @05:35PM (#44360401)
It's a mode you can turn on that substitutes inf for NaR.