• zaphod@feddit.de
    link
    fedilink
    arrow-up
    5
    ·
    edit-2
    9 months ago

    I think you got that wrong, you got +Inf, -Inf and two NaNs, but they’re both just NaN. As you wrote signed NaN makes no sense, though technically speaking they still have a sign bit.

    • frezik@midwest.social
      link
      fedilink
      arrow-up
      4
      ·
      9 months ago

      Right, there’s no -NaN. There are two different values of NaN. Which is why I tried to separate that clause, but maybe it wasn’t clear enough.