So yeah
I joined the pico-eightely world of Pico-8 and decided to try to do some stuff.
One of the things I (and assumedly many others) noticed is the quirk of the numbers range only going up to ~32700 because it's only stored on 8 bytes, and I figured I could try improving on this system...
Now of course many others did before me, and I could have tried to improve on their systems but I decided to do my own whole thing so instead of trying to recreate a mechanical calculator or a double-type number system, I went for the "scientific approach".
I made these snippets (located in tab 1) to turn a simple "12" into "1.2e+1" and to have the ability to do some math operations with it, all in just a bit over 200 tokens.
Virtually, it kind of is bad: Rounding errors happen when you try to repetitively add 1 to something in the 100's, but at least the range limits aren't just 32k in either direction, but 10^1000 now! Well, technically you could go over up to 10^32k but that'd be ridiculous and I had to put some "virtual limit" to turn the value into a Pico-8 equivalent of infinity. (Usually, computers turn 10^~300 into infinity)
For counting, it's bad, but for scoring very large numbers into ridiculously high amounts, like with Balatro for example, it does its job.
Feel free to improve on it or anything. It's honestly just a proof of work or something...
[Please log in to post a comment]