Blijbol.nl

Blijbol, happy business   Dutch English

Links About Blijbol Guestbook
Home News Games Software Game Maker
Downloaded 537 times

Base Converter

From one numeral system to another

Description

Do you want to convert numbers from one numeral system to another quickly? Then this program comes in handy. It converts positive integers in bases between 2 and 36.



Codes

Licence: Use the program below at your own risk. You are only allowed to change this source code for private usage. Any adapted version of this program cannot be distributed. The text 'Blijbol.nl' must remain clearly visible from within the program. Copyright 2007 Jeroen van der Gun.
PROGRAM:BASE
:ClrHome
:Full
:Output(8,4,"Blijbol.nl
:Disp "<Base Converter>
:Real
:Input "From base-",B
:If B<2 or B>36 or fPart(B
:Then
:"DOMAIN
:Goto 1
:End
:Input "",Str0
:length(Str0→L
:0→X
:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ→Str9
:For(I,0,L-1
:inString(Str9,sub(Str0,L-I,1
:If Ans>B or not(Ans
:Then
:"SYNTAX
:Goto 1
:Else
:X+(Ans-1)B^I→X
:End
:End
:If Ans≥10^(13
:Then
:"OVERFLOW
:Goto 1
:End
:B
:Input "To base-",B
:If B<2 or B>36 or B=Ans or fPart(B
:Then
:"DOMAIN
:Goto 1
:End
:16→I
:8→J
:Repeat not(X
:X/B
:Output(J,I,sub(Str9,round(BfPart(Ans),0)+1,1
:iPart(Ans→X
:I-1→I
:If not(Ans
:Then
:16→I
:J-1→J
:End
:End
:Pause 
:Lbl 0
:ClrHome
:Stop
:Lbl 1
:Menu("ERR:"+Ans,"Quit",0

Version 1.0 (stable)

Release date: 24 October 2007
Language: English
System requirements: Texas Instruments graphing calculator running TI-83 Plus or TI-84 Plus operating system (Silver Edition is also fine), 421 bytes free RAM memory or archive space for storage (during use more RAM memory is needed)

Project status

A stable version of this product has been released. The project was announced at 24 October 2007.

Credits

This tool has been created by Jeroen van der Gun.

More for your calculator



Comments

Use the form to add a comment.

8 May 2013 George Sautner
Great Program. Thanks!

18 February 2012 Anonymous
Doesnt work for me. Displays first number of answer over and over again till it fills up screen

7 October 2009 Student
This looks like it work great! tried inputting your code into my 83+. Double checked my inputs and I keep getting a data error at:

"If Ans&#8805;10^(13"

Any ideas why this may be occuring?

There is 1 comment available in Dutch

Add a comment




2 × 2 =
Blijbol =