HP Forums
HP49-50G: 2 FIX and the corresponding flag - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: General Forum (/forum-4.html)
+--- Thread: HP49-50G: 2 FIX and the corresponding flag (/thread-21830.html)



HP49-50G: 2 FIX and the corresponding flag - Gil - 06-04-2024 08:59 AM

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


RE: HP49-50G: 2 FIX and the corresponding flag - Marco Polo - 06-04-2024 11:09 AM

Mode and number of decimals are set in flags -49 and -50 (mode) and -45 through -48 (decimals)


RE: HP49-50G: 2 FIX and the corresponding flag - Gil - 06-04-2024 11:22 AM

Thanks.

A very smart way this way of playing with binary representation of the number of digits.