HP49-50G: 2 FIX and the corresponding flag
|
06-04-2024, 08:59 AM
(This post was last modified: 06-04-2024 09:00 AM by Gil.)
Post: #1
|
|||
|
|||
HP49-50G: 2 FIX and the corresponding flag
Suppose that the HP50G calculator was set previously on setting mode 2 FIX.
To detect that setting in a program, ie that the 2 FIX mode is on, I could do << 7. 6 / —>STR "1.17" SAME IF THEN "FIX 2 Mode is set" ELSE "FIX 2 Mode is not set" END >> It's not very elegant. My question: What is the corresponding calculator FLAG combination/settings for the mode "2 FIX", "3 FIX", "4 FIX", etc. and STD ? Or what would be the most appropriate way to detect the issue? Thanks in advance for your help. Regards, Gil |
|||
06-04-2024, 11:09 AM
Post: #2
|
|||
|
|||
RE: HP49-50G: 2 FIX and the corresponding flag
Mode and number of decimals are set in flags -49 and -50 (mode) and -45 through -48 (decimals)
|
|||
06-04-2024, 11:22 AM
Post: #3
|
|||
|
|||
RE: HP49-50G: 2 FIX and the corresponding flag
Thanks.
A very smart way this way of playing with binary representation of the number of digits. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)