nifty to Programmer Humor@programming.dev • 1 year agoStop using floatslemmy.worldimagemessage-square118fedilinkarrow-up1796arrow-down135
arrow-up1761arrow-down1imageStop using floatslemmy.worldnifty to Programmer Humor@programming.dev • 1 year agomessage-square118fedilink
minus-square@zaphod@feddit.delinkfedilink6•edit-21 year 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@frezik@midwest.sociallinkfedilink5•1 year 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.