EricHasEscaped [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=36717 Inconsistent behavior for FLR <p>I've noticed some inconsistent behavior when using FLR and when doing floating point math in general:</p> <p><a href="https://www.lexaloffle.com/bbs/files/36717/pico1.png" target=_view_image><img style="margin-bottom:16px" border=0 src="https://www.lexaloffle.com/bbs/files/36717/pico1.png" width=132 height=160 alt="" /></a></p> <p>In particular:</p> <ul> <li>(9/10)x10 returns 9, but FLR((9/10)*10) returns 8.</li> <li>(8/10)*10 returns 7.9999. I suspect this bug is related to the FLR bug, as FLR(7.9999) correctly returns 7.</li> </ul> <p>I suspect the problem is not related to string conversion / PRINT, as I was seeing these issues in other contexts as well.</p> <p>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...</p> <p>Thanks,<br /> Eric</p> https://www.lexaloffle.com/bbs/?tid=33949 https://www.lexaloffle.com/bbs/?tid=33949 Sat, 20 Apr 2019 18:36:17 UTC