SteveB Posted March 12, 2023 Share Posted March 12, 2023 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. 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 11 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.