nifty to Programmer Humor@programming.dev • 4 months agoStop using floatslemmy.worldimagemessage-square79fedilinkarrow-up1769
arrow-up1769imageStop using floatslemmy.worldnifty to Programmer Humor@programming.dev • 4 months agomessage-square79fedilink
minus-square@Lmaydev@programming.devlinkfedilink2•edit-24 months 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-squareEpheralinkfedilink1•4 months 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. 🙃