I've noticed some inconsistent behavior when using FLR and when doing floating point math in general:
In particular:
- (9/10)x10 returns 9, but FLR((9/10)*10) returns 8.
- (8/10)*10 returns 7.9999. I suspect this bug is related to the FLR bug, as FLR(7.9999) correctly returns 7.
I suspect the problem is not related to string conversion / PRINT, as I was seeing these issues in other contexts as well.
Apologies if this has been reported before, I searched and didn't find it, but I'm new to Pico-8 so might not know where to look...
Thanks,
Eric
P#63736 2019-04-20 18:36