nifty@lemmy.world to Programmer Humor@programming.dev · 2 years agoStop using floatslemmy.worldimagemessage-square91linkfedilinkarrow-up1791arrow-down135
arrow-up1756arrow-down1imageStop using floatslemmy.worldnifty@lemmy.world to Programmer Humor@programming.dev · 2 years agomessage-square91linkfedilink
minus-squareLmaydev@programming.devlinkfedilinkarrow-up2·2 years agoI feel like that’s adding overhead to every operation to catch the few operations that could result in a nan. But I guess you could provide alternative safe versions of float operations to account for this. Which may be what you meant thinking about it lol
minus-squareEphera@lemmy.mllinkfedilinkarrow-up1·2 years agoI would want the safe version to be the default, but yeah, both should exist. 🙃
I feel like that’s adding overhead to every operation to catch the few operations that could result in a nan.
But I guess you could provide alternative safe versions of float operations to account for this. Which may be what you meant thinking about it lol
I would want the safe version to be the default, but yeah, both should exist. 🙃