HP Forums

Full Version: [WP34s] strange behaviour at number entry
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

I happened to find a strange behaviour of the 34s that shows up when numbers with negative exponents are used in programs. Here's a simple example:

 LBL A
2
ENTER
3
EEX
+/-
9
x
RTN
This should return 6E-9. Now see what happens:
 [A]  78
[A] 0,000000006
[A] 78
[A] 0,000000006
[A] 78
[A] 0,000000006
[A] ...
The 78 simply is 2 x 39 (instead of 2 x 3E-9). This means that every second time (!) the 34s ignores the EEX +/- sequence. After turning the device off and on again, the first call of [A] consistently works correctly and the next shows 78 again. Also, manually entering a number with at least two digits first makes the error disappear:
 [A]  78
[A] 0,000000006
[A] 78
[A] 0,000000006
12
[A] 0,000000006
3 [+/-]
[A] 0,000000006
4 {EEX]
[A] 0,000000006
[A] 78
[A] 0,000000006
[A] ...
On the other hand, the error does not appear if the exponent is entered first, followed by +/-. So this version works fine:
 LBL A
2
ENTER
3
EEX
9
+/-
x
RTN
All this happens with firmware 3.2 3360, but I suspect it does so with other versions as well.

Dieter

Interesting find.

I've no idea how this is occurring and my console debug utilities aren't useful.

- Pauli

Went to bed and started think about this and figured out what was going on. Rather subtle problem with the command line entry. I've fixed the code, but the build will have to wait on Marcus.


- Pauli

Paul, will this be build 3383?


Regards,

John

We're at 3404 now and Marcus hasn't built it yet, so expect 3405 or greater.

d:-)

P.S.: It is 3405.


Edited: 6 June 2013, 11:28 a.m.

The fix is built and committed.

Wow ! The software department has been busy. ;-) I look here Link for updates but haven't found the right indication a new version is available. Do you have any suggestions?

Regards,

John

Can you enlighten us on what the problem was? I am curious now.

Works fine now. Thank you very much.

Dieter

Quote:
Do you have any suggestions?

Yes, please read p. 165 of the printed manual - and don't forget footnote 82. HTH

d:-)

Don't worry about the missed version numbers. There have been a number of builds for the various emulators which push this number up without changing the core functionality at all.


- Pauli

An off by one error and some stale data. Look at the commit logs for further details :-)


- Pauli

Ok, I will do. Thanks!