WP-34S: # constant in exponent


In debugging a program, I found that I had used:

# nn

It did not do what I expected. Is there a specific reason why # constants cannot be used for exponents, or did it just not make it into the design?


I can guess why, but that question goes to Pauli.




the #nnn shortcut enters an integer and quits digit entry before and after the command. Thus it cannot be combined with regular digit entry. So the sequence...

...does not return 1E123. Instead, it enters two different values: "1 EEX" equals 1 and #123 is, well, 123. So you will end up with 1 in Y and 123 in X. That's the way it is supposed to work. And it is consistent, since you cannot use...
...to enter 1234 either. Or even think of this one:
Of course this will not produce a six-digit integer like 123456. ;-)

By the way, your example can simply be coded as

SDR nn
That's even shorter.



Dieter got it right.

Consider EEX [pi]. What should this do?

The # nnn commands are constants. They terminate command line input and raise the stack usually. The are not an extension of keyboard digit input.

- Pauli

Possibly Related Threads...
Thread Author Replies Views Last Post
  [WP-34S] Unfortunate key damage with update to V3 :( svisvanatha 5 1,465 12-10-2013, 11:37 PM
Last Post: Les Bell
  WP-34S (Emulator Program Load/Save) Barry Mead 1 807 12-09-2013, 05:29 PM
Last Post: Marcus von Cube, Germany
  DIY HP 30b WP 34s serial flash/programming cable Richard Wahl 2 1,155 12-04-2013, 11:14 AM
Last Post: Barry Mead
  [HP Prime] Using n-root symbol and exponent problem uklo 7 1,430 11-11-2013, 01:39 AM
Last Post: Alberto Candel
  WP 34S/43 ?'s Richard Berler 3 1,007 11-10-2013, 02:27 AM
Last Post: Walter B
  My FrankenCulator (wp-34s) FORTIN Pascal 4 1,054 11-09-2013, 06:18 PM
Last Post: FORTIN Pascal
  WP 34S Owner's Handbook Walter B 5 1,319 11-09-2013, 05:34 PM
Last Post: Harald
  wp 34s overlay and programming. FORTIN Pascal 6 1,451 11-08-2013, 01:28 PM
Last Post: Nick_S
  m.dy in display of WP-34S Harold A Climer 3 905 11-05-2013, 11:28 AM
Last Post: Andrew Nikitin
  WP 34s : An old problem coming back Miguel Toro 2 817 11-05-2013, 03:00 AM
Last Post: Marcus von Cube, Germany

Forum Jump: