Comment on I wish
homura1650@lemmy.world 11 months agoNo. The alternative is to not use a float. Testing if a float is even simply does not make sense.
Even testing two floats for equality rarely makes sense.
Comment on I wish
homura1650@lemmy.world 11 months agoNo. The alternative is to not use a float. Testing if a float is even simply does not make sense.
Even testing two floats for equality rarely makes sense.
257m@sh.itjust.works 11 months ago
It does if it dosen’t have a decimal. If it has decimal then it automatically isn’t and the function will return false.