• herrvogel@lemmy.world
    link
    fedilink
    arrow-up
    7
    ·
    9 months ago

    Floating point errors are a product of how floating points work as a mathematical concept. So they’re independent of the programming language and can happen everywhere.

    In this case though, I doubt it’s a critical issue. So the player “died” when they actually had 0.000000000027 hp left or whatever. Who cares? Do you need to be that precise?