The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
WP 34s registers and integer modes
04-02-2015, 04:32 PM
Post: #1
WP 34s registers and integer modes
Greetings,

I'm not sure I'm understanding a behavior on the WP 34s. Integers stored in registers (either local or global) are no longer integers if recalled after DECM. Stack values are OK. Here's a little test program I wrote to demonstrate:

LBL 'TST'
BASE 10
3
STO 00
DECM
RCL 00
END

Result:
Y: 3
X: 3e-398

The content of R00 is 3e-398 as well. If I shift back to BASE10 the value in X becomes 0 (as you would expect) but the R00 register goes back to 3.

I'm either not understanding something critical about integer modes, or I've run into a bug. I don't have my WP 34s yet, so I guess it could be a bug in the emulator, but the Windows and iOS emulators show the same behavior.

I'm figuring I just don't understand something about integer representation. Can anyone explain this to me?

Thanks.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
WP 34s registers and integer modes - signals - 04-02-2015 04:32 PM



User(s) browsing this thread: 1 Guest(s)