Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
19 May, 2013, 16:02:04 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: [1]   Go Down
  Print  
Author Topic: [Lua] Base Converter -  (Read 969 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
cyanophycean314
LV6 Super Member (Next: 500)
******
Offline Offline

Gender: Male
Last Login: 03 May, 2013, 19:28:34
Date Registered: 07 December, 2011, 02:44:32
Location: Somewhere?
Posts: 363


Topic starter
Total Post Ratings: +42

View Profile
« on: 12 January, 2012, 00:29:47 »
0

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...


* Base.jpg (15.68 KB, 480x360 - viewed 411 times.)
* base.lua (2.52 KB - downloaded 48 times.)
* Base Conv.tns (2.01 KB - downloaded 49 times.)
Logged

adriweb
Editor
LV9 Veteran (Next: 1337)
*
Offline Offline

Gender: Male
Last Login: Today at 15:15:23
Date Registered: 13 April, 2011, 18:42:59
Location: South of France
Posts: 1195


Total Post Ratings: +185

View Profile WWW
« Reply #1 on: 12 January, 2012, 00:58:55 »
0

Nice !

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

http://stackoverflow.com/questions/3554315/lua-base-converter
Logged


TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation
cyanophycean314
LV6 Super Member (Next: 500)
******
Offline Offline

Gender: Male
Last Login: 03 May, 2013, 19:28:34
Date Registered: 07 December, 2011, 02:44:32
Location: Somewhere?
Posts: 363


Topic starter
Total Post Ratings: +42

View Profile
« Reply #2 on: 13 April, 2012, 07:44:38 »
0

No update, but it's pretty interesting how this file is in ticalc's top 25 most downloaded files in the past 7 days Tongue

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

apcalc
The Game
Coder Of Tomorrow
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Gender: Male
Last Login: 12 May, 2013, 20:31:24
Date Registered: 20 March, 2010, 16:31:47
Location: 2003 UB313
Posts: 1393


Total Post Ratings: +118

View Profile
« Reply #3 on: 30 April, 2012, 01:41:33 »
0

No update, but it's pretty interesting how this file is in ticalc's top 25 most downloaded files in the past 7 days Tongue

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

That is a good thing!  Great job! Wink
Logged


Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.256 seconds with 30 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.