joshfaulkner@lemmy.worldtoAsk Lemmy@lemmy.world•What's a band that you like that was gone way too soon?English
1·
1 year agoBut remember, one third of Nirvana in their final incarnation was Dave Grohl. With his talent, image what might have been…
But remember, one third of Nirvana in their final incarnation was Dave Grohl. With his talent, image what might have been…
I know this is /c/Progammerhumor, but I wanted to pull on this thread a little bit for my own edification. I’m a Python guy and have been a while, but I’ve dabbled in other languages. The screenshot says “MonoBehaviour” which makes me assume this is mono or a .Net-like language (you know what happens when you assume).
If your player health is a float, would mono or .Net have an issue comparing the float with integer zero “0”? I mean, it seems like floating point precision may make it impossible for it to ever “equal” integer zero, but it also seems like the code isn’t accounting for that precision error.
Am I overthinking this?