Jump to content
IGNORED

Radix-100 Utility and Library


Recommended Posts

As a preparation to read and write INTERNAL files I created a (Lazarus Pascal-) library to read and write Radix-100 values, used by various calculators, the TI CC-40 and the TI-99/4a. I created a test-program that converts Radix-100 to hex-strings and vice versa. 

 

image.thumb.png.77946cb14da171f87d340c7b0e1f064f.png

 

I implemented two conversions, one to/from text and one to/from float type "Extended" to use in calculations. The later one may have minimal rounding issues, i.e. 1.12 may get 1.11999999999 due to the different kinds of mantissa encoding. 

 

Even if you do not plan to do Pascal programming with Radix-100, this can still be used as a stand-alone tool if you deal with Radix-100 numbers. A binary for Win64 is included, it should compile on all platforms supported by Lazarus. It has been tested against the examples in the Editor/Assembler Manual page 279, @Lee Stewart Appendix L of his fbForth 2.0 manual range boundaries and some other experiments I did, but it still may contain errors. 

 

You can find it here: https://github.com/SteveB69/Radix100Pas

 

Cheers

Steve

 

  • Like 11
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...