minus-squarezaphod@feddit.detoProgrammer Humor@programming.dev•Stop using floatslinkfedilinkarrow-up1·edit-28 months agoI 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. linkfedilink
minus-squarezaphod@feddit.detocats@lemmy.world•Caught red pawed!linkfedilinkarrow-up1·1 year agoIs it at least their cat? linkfedilink
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.