0 Members and 2 Guests are viewing this topic.
Well, this is TI-BASIC program, so no requirements are needed. I didn't see any program like this in here, so I post it.This nifty program lets you convert any base number to any base(2~36).Posted screenshot also.
Quote from: yeongJIN_COOL on March 28, 2011, 07:32:27 pmWell, this is TI-BASIC program, so no requirements are needed. I didn't see any program like this in here, so I post it.This nifty program lets you convert any base number to any base(2~36).Posted screenshot also.I think Deep Thought made one like that but homescreen (like you could do maths with it, I think), but this is very good, nice job Yeong.
Quote from: Scout on March 29, 2011, 05:02:56 pmQuote from: yeongJIN_COOL on March 28, 2011, 07:32:27 pmWell, this is TI-BASIC program, so no requirements are needed. I didn't see any program like this in here, so I post it.This nifty program lets you convert any base number to any base(2~36).Posted screenshot also.I think Deep Thought made one like that but homescreen (like you could do maths with it, I think), but this is very good, nice job Yeong.DT's only did bases 2,8,10 and 16. Though I guess bases other than 2,10 and 16 are really for fun, since those three are often the bases programmers use (though I guess some might use octal...). Still, looks great Yeong!
ClrHomeDisp "yeongJIN-COOL'S","Universal","Base Converter","Pause "Press EnterClrHomeInput "TYPE NUM ",Str1Input "BASE OF NUM ",AInput "BASE TO CONVERT ",Y"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ→Str0DelVar Xlength(Str1→BFor(D,1,AIf Str2=sub(Str0,D,1D→EEndX+(E-1)A^(C-1→XEnd"_→Str2If not(X"0→Str2While Xsub(Str0,X-YiPart(X/Y)+1,1)+Str2→Str2iPart(X/Y→XIf Ans<YThensub(Str0,Ans+1,1)+Str2→Str2DelVar XEndEndDelVar ADelVar BDelVar CDelVar DDelVar EDelVar XDelVar YDelVar Str0DelVar Str1Disp "RESULT",Str2
Awesome. Just a little thing, its spelled "Universal"
Quote from: yunhua98 on March 29, 2011, 05:11:10 pmAwesome. Just a little thing, its spelled "Universal" Fixed just because multiple people have pointed it out...Also, uprated the OP. That's a nice program. Does it handle decimals as well?