I've been needing to convert among base 2, 8, 10, and 16 recently. Although there's many great base converter solutions, none of them would show me the conversion for all 4 bases immediately as I typed out the number.

To solve that I made yet another base converter! I've been pretty happy with its performance on a rev M TI-84 Plus CE. In order to make the experience better on slower calculators, pressing [graph] will toggle a setting that disables live mode and requires [enter] to be pressed to start the base conversions.


Screenshot shows the performance of a pre-M calculator.
I would recommend 'overclocking' if possible.


The code is as optimized as my skill level allows but I'm always open to improvements. Once I fixed a bug related to deleting the first character of a number, I'll upload it to the archives. For now it's on Github: https://github.com/TheLastMillennial/LiveBaseConverterCE

As a bonus, you can easily add your own base to convert to by just adding a 5th element to L1 in prgmBASELIVE.
Nice work! Is it also possible to use bases higher than 16 by making the string longer and add some numbers to L1?
You can make it handle more bases but you run into a limit when the number keys share a button with the alpha keys. I think you could get to base 24 without issue though.
Womp kindly code-golfed my keypress handler to less than a third of the size so I'll have to implement that sometime!
Thanks to womp's initiative, the bugs mentioned above are fixed and the code is much smaller!
I've uploaded to the archives and when it's accepted you can find it here: https://www.cemetech.net/downloads/files/2702/x3503
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement