HP48SX strange?

11122015, 10:22 PM
Post: #1




HP48SX strange?
I was using my HP48SX (1988) to convert some decimal numbers to binary by choosing MTH > BASE which then rightly sets up the A > F top row keys with
HEX DEC OCT BIN STWS RCWS A. B. C. D. E. F So I'm entering #976 pressing DEC and then enter to put 976d on the stack then BIN gives me # 1111010000b I enter a few more larger numbers THEN I entered #17000 pressed DEC and Enter and # 616d appears on the stack and pressing BIN gives # 1001101000b So I tried to find out where the formatting of the decimal number on the stack was changing before any conversion was even done. It changes after decimal 16383 #16382 DEC Enter puts # 16382d on the stack and BIN gives # 11111111111110b BUT #16384 DEC Enter puts # 0d on the stack and BIN gives # 11111111111111b ?? Any numbers >= 16384 decimal give strange results e.g. # 88364 DEC Enter gives # 6444d on the stack and BIN gives #1100100101100b? Any idea what is happening here? Denny 

11132015, 04:28 AM
Post: #2




RE: HP48SX strange?
Your word size is set to 14 bits (press RCWS to check this), which might be too small for the numbers you are working with. Just change it to 64 (64 STWS).
HTH, Gerson. 

11132015, 04:42 AM
Post: #3




RE: HP48SX strange?
(11122015 10:22 PM)Leviset Wrote: I was using my HP48SX (1988) to convert some decimal numbers to binary by choosing MTH > BASE which then rightly sets up the A > F top row keys withI would suspect you have your word size set to 14 the SX store the full number but the displayed number is truncated according to the word size set. You can see what it is set to with the RCWS soft key and set it by entering a number and pressing STWS soft key. See chapter 14 in the manual for a full explanation of binary functions. Paul. 

11142015, 05:22 PM
Post: #4




RE: HP48SX strange?
Thanks guys you are both correct


« Next Oldest  Next Newest »

User(s) browsing this thread: