binary to decimal
http://tibasicdev.wikidot.com/forum/t-14389620/binary-to-decimal
Posts in the discussion thread "binary to decimal" - is there anything else possible?Tue, 29 Nov 2022 14:39:07 +0000http://tibasicdev.wikidot.com/forum/t-14389620#post-5159133Re: binary to decimal code optimization
http://tibasicdev.wikidot.com/forum/t-14389620/binary-to-decimal#post-5159133
Sun, 19 Dec 2021 03:37:27 +0000imcoraline6725643
by the way, that funky superscript character next to 4 is -1. its really 4^-1 using the inverse command. its .25, but smaller, since it uses less tokens.
]]>
http://tibasicdev.wikidot.com/forum/t-14389620#post-5159131binary to decimal code optimization
http://tibasicdev.wikidot.com/forum/t-14389620/binary-to-decimal#post-5159131
Sun, 19 Dec 2021 03:34:43 +0000imcoraline6725643
im not trying for speed, im trying for size. right now, on my ti83+, this program takes up 37 ram (with a one letter program name, if that changes anything). is there any further optimization possible at this point?

(note: the code takes a binary number in a list (that list is Ans) and outputs the decimal equivalent. for example, 101_{2} is {1,0,1}.)