Binary Converter
Name: Binary Converter Author: The Hewitt Download: BINARY_TI-84_Plus.8xp Compatibility: TI-83/84/+/SE File Size: 858 Bytes |
A simple conversion system between bases 10 and 2. |
Want to update this page?
- Upload new files to provide up-to-date versions of your program;
- or Edit the content of this page to provide up-to-date information about your program.
A moderator will only process these changes if you add the word update to the list of tags
What the community thinks:
You could simply have done this to convert from decimal to binary:
-1→D
While D≤0
Input D
End
0→A
For(Z,1,1+iPart(log(D)/log(2
10^(Z-1)*2fPart(D/2)+A→A
iPart(D/2→D
End
Disp A
DelVar ADelVar DDelVar Z
D is the number in decimal, A is the answer in binary. 1+iPart(log(D)/log(2 is used to calcule how many time you need to divide by 2 for the loop while 10^(Z-1)*2fPart(D/2)+A→A store 1 or 0 for this step in A . iPart(D/2→D divides the number in Decimal to calculate the next step..
I know its not fully optimized cause i'm not an expert in optimization but your program was way too big for a binary converter.
With this routine, you can also substitute the number 2 for the number you want or even a variable to have a converter in the base you want like in octodecimal.
Or you could use weregooses awsome converter.
Returns a list containing the digits of N in base B.
Join Codeworld.
Also check out my blog.
Yeah , better than mine ! I'm not this good in programming but you may want something you understand so go at your own rythm. I understand weregoose code but I prefer using mine when coding to become better so go as you can and your converter seems nice
you should learn how to use strings and make use of them to make sure that the full binary value is shown on-screen
This is thread is over 8 years old. I doubt any of the commentators care about this thread anymore. If you like, you could join this site and upload your own program…
Battlesquid
EDIT: Sorry, testing out links to users. Meant to hit "Preview" not "Post"
Hm?
EDIT: Ah, ok :)
Also if you didn't know, you can include the user icon by doing [[*user Battlesquid]]. That would produce Battlesquid.
:D
I'm trying to get the avatar to appear next to a user's name by using a link to that person's profile page. I believe Trenly has done this before.
EDIT: I'm trying to learn more about the Wikidot engine, which is how I discovered the Multiple PM bookmarklet.
Battlesquid Ok, thanks for enlightening me. I'll have to remember that for future use.