nifty to Programmer [email protected] • 10 months agoStop using floatsimagemessage-square85arrow-up1783arrow-down135
arrow-up1748arrow-down1imageStop using floatsnifty to Programmer [email protected] • 10 months agomessage-square85
minus-square@[email protected]linkfedilink6•edit-210 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.
minus-square@[email protected]linkfedilink5•10 months agoRight, 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.
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.
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.