Show all digits in binary number

Post here to share useful tips and tricks, to ask questions about using your DM42 or to report software-related problems
Post Reply
User avatar
salvomic
Posts: 186
Joined: Sat Dec 30, 2017 10:09 am
Location: Ragusa, Sicily
Contact:

Show all digits in binary number

Post by salvomic »

hi,
let's put a binary form of i.e. -15180, we have 14 "1" and then only 12 significant digits to the right, ok.
We have X: 11111111111111...
We can see it with Shift-Show but for a while (...00010010110100).
I would like to see the whole number without keeping pressed Show. I don't remember how to do, ehm.

Salvo
∫aL√0mic (IT9CLU) :: DM42 (SN: 00881), DM41X (SN 00523), DM16, HP Prime, 50g, 41CX, 42s, 71b, 15C, 12C, 35s, WP34s -- Free42
Thomas Okken
Posts: 1100
Joined: Tue May 02, 2017 5:48 pm
Location: Netherlands
Contact:

Re: Show all digits in binary number

Post by Thomas Okken »

salvomic wrote:
Fri Feb 09, 2018 4:50 pm
hi,
let's put a binary form of i.e. -15180, we have 14 "1" and then only 12 significant digits to the right, ok.
We have X: 11111111111111...
We can see it with Shift-Show but for a while (...00010010110100).
I would like to see the whole number without keeping pressed Show. I don't remember how to do, ehm.
There's no built-in way to do that, but you could use a program that does something like this:

LBL "BVIEW"
CLA
BINM
ARCL ST X
DECM
PROMPT
END
User avatar
salvomic
Posts: 186
Joined: Sat Dec 30, 2017 10:09 am
Location: Ragusa, Sicily
Contact:

Re: Show all digits in binary number

Post by salvomic »

Thomas Okken wrote:
Fri Feb 09, 2018 6:30 pm

There's no built-in way to do that, but you could use a program that does something like this:

LBL "BVIEW"
CLA
BINM
ARCL ST X
DECM
PROMPT
END
ok, Thomas.
I'm trying it.
I don't remember how to input
ARCL ST X
If I put ARCL from "CATALOG -> FCN" then choose X from soft menu I get
ARCL "X"
but so the program don't seems to work.

Salvo
∫aL√0mic (IT9CLU) :: DM42 (SN: 00881), DM41X (SN 00523), DM16, HP Prime, 50g, 41CX, 42s, 71b, 15C, 12C, 35s, WP34s -- Free42
toml_12953
Posts: 795
Joined: Wed May 03, 2017 7:46 pm
Location: Malone, NY USA

Re: Show all digits in binary number

Post by toml_12953 »

salvomic wrote:
Fri Feb 09, 2018 7:01 pm
Thomas Okken wrote:
Fri Feb 09, 2018 6:30 pm

There's no built-in way to do that, but you could use a program that does something like this:

LBL "BVIEW"
CLA
BINM
ARCL ST X
DECM
PROMPT
END
ok, Thomas.
I'm trying it.
I don't remember how to input
ARCL ST X
If I put ARCL from "CATALOG -> FCN" then choose X from soft menu I get
ARCL "X"
but so the program don't seems to work.

Salvo
After ARCL, press the period key then IND and then ALPHA and choose your letter.
Tom L

Some people call me inept but I'm as ept as anybody!
DM10L SN: 059/100
DM41X SN: 00023 (Beta)
DM41X SN: 00506 (Shipping)
DM42 SN: 00025 (Beta)
DM42 SN: 00221 (Shipping)
WP43 SN: 00025 (Prototype)
User avatar
salvomic
Posts: 186
Joined: Sat Dec 30, 2017 10:09 am
Location: Ragusa, Sicily
Contact:

Re: Show all digits in binary number

Post by salvomic »

toml_12953 wrote:
Fri Feb 09, 2018 7:04 pm

After ARCL, press the period key then IND and then ALPHA and choose your letter.
ok!
ok with period, and ST X beside IND.

I should read again the HP-42s manual!
:-)

Now the program works as expected. I saved it in the program folder...

Thanks a lot!

Salvo
∫aL√0mic (IT9CLU) :: DM42 (SN: 00881), DM41X (SN 00523), DM16, HP Prime, 50g, 41CX, 42s, 71b, 15C, 12C, 35s, WP34s -- Free42
Thomas Okken
Posts: 1100
Joined: Tue May 02, 2017 5:48 pm
Location: Netherlands
Contact:

Re: Show all digits in binary number

Post by Thomas Okken »

On second thought, it's better to use EXITALL instead of DECM in that code. DECM leaves BASE mode active, which means the arithmetic keys are BASE+, BASE-, etc., and that can be really confusing.
User avatar
salvomic
Posts: 186
Joined: Sat Dec 30, 2017 10:09 am
Location: Ragusa, Sicily
Contact:

Re: Show all digits in binary number

Post by salvomic »

Thomas Okken wrote:
Sat Feb 10, 2018 8:36 am
On second thought, it's better to use EXITALL instead of DECM in that code. DECM leaves BASE mode active, which means the arithmetic keys are BASE+, BASE-, etc., and that can be really confusing.
thank you for advice. I'll change with EXITALL and give a try today.

Salvo

EDIT: it works well in Free42 and DM42!
∫aL√0mic (IT9CLU) :: DM42 (SN: 00881), DM41X (SN 00523), DM16, HP Prime, 50g, 41CX, 42s, 71b, 15C, 12C, 35s, WP34s -- Free42
Post Reply