Thanks to the folks at CCIL for hosting these pages.
| remlaPS Home Page | remlaPS Web Logs at CCIL |
Integer Base Conversion Tool
|
|
This page contains a proof of concept demo and code for some integer
base (radix) conversion algorithms. The algorithms used are crudely
described in Alternative
Algorithms for Integer Base Conversion. DispConWeb is a web
based java calculator for integer base conversion. It handles positive
integers in positive and negative bases from base -94 through 94, except
for bases -1, 0 and 1.
|
Here are the values for the digits used...
0 1 2 3 4 5 6 7 8 9
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123
0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz`~!@#$%^&*()-_=+[]{}\|;:,.<>/?'"
|
|
Here is the java applet...
|
Notes:
|
Source:DispConWeb.java - Applet I/O and error checking stuff.Normalize.java - Inbase is a multiple/factor of outbase. PascalT.java - Convert between bases by an additive offset, using Pascal's Triangle.
|
Local Version:DispCon (stale and gettting staler 6/9/7) |