General Issues
Overview
T\->B?
B?\->T
Examples
Customization
B?\->T Bug
Correspondence
Miscellaneous Information
The Base Conversion Directory is freeware. It is not to be bought or sold. The programs, directory, and documentation may be copied freely provided that the programs, directory, and/or documentation are not altered in any way and that they are distributed as you received them (that is to say, in a single compressed file containing the programs, directory, and documentation, and any other accompanying files). A service fee may be charged only for the distribution process. You may alter the programs for your personal use but you may not distribute any altered version without prior written permission from the copyright owners.
The above privileges do not involve transfer of intellectual property rights such as copyright ownership. Base Conversion Directory copyright © 1992 by Akira Ijuin. Documentation copyright © 1992, 1995, 2000 by Junichi Steven Sato. All rights reserved.
THE PROGRAMS, DIRECTORY, AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. SHOULD THE PROGRAMS, DIRECTORY, AND/OR DOCUMENTATION PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
IN NO EVENT SHALL THE COPYRIGHT OWNERS OF THESE PROGRAMS, DIRECTORY, AND/OR DOCUMENTATION BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAMS, DIRECTORY, AND/OR DOCUMENTATION, EVEN IF THE COPYRIGHT OWNERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
Return to the Table of Contents
The Base Conversion Directory contains two programs: T\->B? and B?\->T. Both require the variable 'BChr' (also included in the directory) to run properly.
Return to the Table of Contents
T\->B? converts a base 10 number into a number from base 2 to base 62. The program works on any positive real number. It requires a number in base 10 in level 3, the destination base represented by a number between 2 and 62 in level 2, and a positive real number in level 1 indicating the number of digits to be calculated to the right of the decimal point of the resulting number. The number given in level 3 may be tagged.
T\->B? returns the original base 10 number in level 2 and the result as a tagged string in level 1.
Return to the Table of Contents
B?\->T converts a number of base between 2 and 62 into a number of base 10. It requires the number in the form of a string in level 2 and the base of that number represented by a number between 2 and 62 in level 1. The number in level 2 may be tagged.
B?\->T returns the original number in level 2 and the base 10 result in level 1. Results may be affected by flags -45 to -51.
Return to the Table of Contents
Example 1: Convert the base 10 number 255986 to a base 16 number.
Your input should look like this:
3: 255986 2: 16 1: 0
Executing T\->B? should yield:
2: Base 10: 255986 1: Base 16: "3E7F2"
Example 2: Convert the base 10 number 456.258 to a base 62 number using 10 decimal places.
Your input should look like this:
3: 456.258 2: 62 1: 10
Executing T\->B? should yield:
2: Base 10: 456.258 1: Base 62: "7M.Fzkcgedijw"
Example 3: Convert the base 22 number "17F" to a base 10 number.
Your input should look like this:
2: "17F" 1: 22
Executing B?\->T should yield:
2: Base 22: "17F" 1: Base 10: 653
Example 4: Convert the base 5 number "4.23102" to a base 10 number.
Your input should look like this:
2: "4.23102" 1: 5
Executing B?\->T should yield:
2: Base 5: "4.23102" 1: Base 10: 4.52864
Return to the Table of Contents
Note that decimal numbers 10 to 35 are represented by the upper case characters "A" to "Z", and numbers 36 to 61 are represented by the lower case characters "a" to "z". If, for some reason, the user wants to use different characters to represent these decimal numbers, he or she may alter the variable 'BChr'. For instance, if the user wants an upside-down question mark to represent the decimal number 12, he or she can replace the letter "C" in the variable 'BChr' with an upside-down question mark. Using this particular alternative, the base 10 number 390092 will come out as a string starting with "5F3" and ending with two upside-down question marks in base 16. The user may also extend the 62-base limit by adding characters to 'BChr'. For example, adding the Greek letter "alpha" to the end of 'BChr' will allow the base conversion programs to handle a 63-base limit, with "alpha" representing decimal number 62. In this particular instance, the base 10 number 246399 would become alpha-5-6 in base 63.
Return to the Table of Contents
There have been cases where B?\->T would return "SUB Error: Bad Argument Type." The author is not sure what causes this error to occur. Because the Base Conversion Directory was developed for and only tested on the HP-48SX, the issue may be a compatibility problem if you are trying to use the directory on anything other than the HP-48S series (the newer HP-48G series, for example). It is also possible that a library or add-on ROM card may cause conflicts with the directory.
Return to the Table of Contents
Due to time limitations, not all submissions will be answered, but please feel free to submit correspondence regarding the Base Conversion Directory by sending an e-mail to Akira Ijuin at hp48@ijuin.org or Junichi Steven Sato at junichi@neecher.net.
Return to the Table of Contents
Title: Base Conversion Directory
Release date: June, 1992
Checksum: # 3090h or # 12432d
Bytes: 616
Programs by: Akira Ijuin
Documentation by: Junichi Steven Sato
Return to the Table of Contents
[ Main Page
| Official Bio
| What is Neecher? ]
[ Work Listing
| Audio Clips
| Photos ]
[ Beethoven Quiz
| HP-48 Programs
| Chess Games ]
[ Favorite Links
| Terms of Use ]
Use of this site indicates you accept the Terms of Use