Logarithm Function: https://pico-8.fandom.com/wiki/Math
A simple calculator cartridge.
Controls:
(D-pad) Move Cursor
(O) Selected Button
Limitations:
• Numbers only go up to 32767 before wrapping around
• Numbers are rounded to 4 digits
• Logarithm function is approximated
• Generally bad code
P#122209 2022-12-11 01:29
Wow. That is - very different from my calculator, @girres42. Here I just type 7 and the square root key. I was expecting instant calculation thus: answer=sqrt(x)
I see what you are doing here is quite clever x^(1/y)
so you can get any root you want, square or cube if desired. Neat !
Let me try that.
Okay 27
√
3
= 2.9996
Hmm .. Oh, but that's not right. It should be 3.
P#122220 2022-12-11 04:16
[Please log in to post a comment]