Author Topic: [Lua] Base Converter  (Read 6083 times)

0 Members and 1 Guest are viewing this topic.

Offline cyanophycean314

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 363
  • Rating: +43/-1
  • It's You!
    • View Profile
[Lua] Base Converter
« on: January 11, 2012, 05:29:47 pm »
I wrote a base converter in Lua. I realize that there is already some basic support for base conversion and a basic program. This allows you to type in letters and convert to bases other than 2, 10, and 16. I might add fractions, but I don't really know how to do that.

Controls:
Type in letters/numbers
Enter to go to next value
Tab to reset
Backspace to backspace...

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: [Lua] Base Converter
« Reply #1 on: January 11, 2012, 05:58:55 pm »
Nice !

for a more general (?) algorithm, take a look here :

http://stackoverflow.com/questions/3554315/lua-base-converter
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline cyanophycean314

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 363
  • Rating: +43/-1
  • It's You!
    • View Profile
Re: [Lua] Base Converter
« Reply #2 on: April 13, 2012, 01:44:38 am »
No update, but it's pretty interesting how this file is in ticalc's top 25 most downloaded files in the past 7 days :P

My other files have seen their downloads drop from around 80 to 30...

Offline apcalc

  • The Game
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1393
  • Rating: +120/-2
  • VGhlIEdhbWUh (Base 64 :))
    • View Profile
Re: [Lua] Base Converter
« Reply #3 on: April 29, 2012, 07:41:33 pm »
No update, but it's pretty interesting how this file is in ticalc's top 25 most downloaded files in the past 7 days :P

My other files have seen their downloads drop from around 80 to 30...

That is a good thing!  Great job! ;)