dcpu-cbmbasic
dcpu-cbmbasic copied to clipboard
Implement exponents and logarithms (LOG, EXP, ^ operator)
There's some literally-translated code for this in the latest commit but it seems to spit out random values when you try anything.
So I fixed the polynomial routine and EXP() works. The ^ operator and LOG are still not quite done.
The power operator and LOG are implemented, but inaccurate. They both rely on division, and currently division is only accurate to 16 bits.
This will probably fix itself when #4 is closed.