(PC-1211) Engineering format
|
05-10-2022, 02:32 PM
Post: #1
|
|||
|
|||
(PC-1211) Engineering format
Most of the Sharp pocket computers don't have any built in engineering display format, so I whipped up this quickie to somewhat fill this gap. I wrote it on my PC-1211, but it should work on pretty much any model of Sharp that adheres to the INT function always rounding down (i.e. not truncate/round toward zero).
Usage From the keyboard: press SHIFT (or DEF) = to display current input/result in engineering format. Note that attempting to do this in the middle of a running program will terminate the running program. From a program: GOSUB "ENG" to convert X to mantissa and exponent stored in M and E respectively. You can then format these values as desired in your PRINT/USING statements. Code: 1:"="AREAD X:GOSUB "ENG":PRINT M;"E";E:END |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 3 Guest(s)