This is true, but it occurred to me, perhaps belatedly, that IEEE floats actually do represent infinity (positive and negative, and also not-a-number as a separate value). I don’t know how it acts in all cases, but I imagine that positive infinity plus positive infinity would be positive infinity. Don’t know about comparisons.
… and if the type is a fixed-size int, that means that you need to actively limit the reward after a while to keep the total from rolling over and actually getting smaller or even going negative.
So I guess bignums are dangerous and should be avoided. New AI coding best practice. :-)
This is true, but it occurred to me, perhaps belatedly, that IEEE floats actually do represent infinity (positive and negative, and also not-a-number as a separate value). I don’t know how it acts in all cases, but I imagine that positive infinity plus positive infinity would be positive infinity. Don’t know about comparisons.
… and if the type is a fixed-size int, that means that you need to actively limit the reward after a while to keep the total from rolling over and actually getting smaller or even going negative.
So I guess bignums are dangerous and should be avoided. New AI coding best practice. :-)