(42S) Three-Way Comparison, <=>, compare for Reals & a Problem on Free42
12-31-2018, 06:35 AM (This post was last modified: 12-31-2018 06:36 AM by Gerald H.)
Post: #1
 Gerald H Senior Member Posts: 1,461 Joined: May 2014
(42S) Three-Way Comparison, <=>, compare for Reals & a Problem on Free42
For reals input

A
B

the programme returns for

A<B
-1

A=B
0

A>B
1

The programme poses no problems on the real HP 42S, however on Free42 the programme cannot be entered, or at any rate I haven't managed it, as after entering the "3" in the label I can't enter any alpha characters.

Any hints how to do this?

Code:
00 { 11-Byte Prgm } 01▸LBL "3WCP" 02 - 03 X≠0? 04 SIGN 05 .END.
12-31-2018, 07:32 AM
Post: #2
 Werner Senior Member Posts: 695 Joined: Dec 2013
RE: (42S) Three-Way Comparison, <=>, compare for Reals & a Problem on Free42
2nd
LBL
WXYZ
3
W
etc.

The key to entering an alpha label that starts with a number, is to select alpha mode first.
Select any of the six preselection keys first, then the '3' will be recognized as an alpha character instead of a number.

Cheers, Werner
12-31-2018, 07:41 AM
Post: #3
 Gerald H Senior Member Posts: 1,461 Joined: May 2014
RE: (42S) Three-Way Comparison, <=>, compare for Reals & a Problem on Free42
Thank you, Werner, that does the trick.

Still a difference in entering labels between Free42 & HP 42S.
12-31-2018, 07:46 AM (This post was last modified: 12-31-2018 07:47 AM by SammysHP.)
Post: #4
 SammysHP Member Posts: 151 Joined: Jul 2018
RE: (42S) Three-Way Comparison, <=>, compare for Reals & a Problem on Free42
This is indeed a difference between the HP 42S and free42. With the real calculator, after you have entered a number and the prompt changes to LBL 3_, you can resume alpha input by pressing shift+alpha (and the prompt changes back to LBL "3_).
12-31-2018, 09:26 AM
Post: #5
 Werner Senior Member Posts: 695 Joined: Dec 2013
RE: (42S) Three-Way Comparison, <=>, compare for Reals & a Problem on Free42
(12-31-2018 07:46 AM)SammysHP Wrote:  This is indeed a difference between the HP 42S and free42. With the real calculator, after you have entered a number and the prompt changes to LBL 3_, you can resume alpha input by pressing shift+alpha (and the prompt changes back to LBL "3_).

Never too old to learn, I didn't know that!
Cheers, Werner
01-02-2019, 11:56 PM
Post: #6
 Thomas Okken Senior Member Posts: 1,765 Joined: Feb 2014
RE: (42S) Three-Way Comparison, <=>, compare for Reals & a Problem on Free42
(12-31-2018 09:26 AM)Werner Wrote:
(12-31-2018 07:46 AM)SammysHP Wrote:  This is indeed a difference between the HP 42S and free42. With the real calculator, after you have entered a number and the prompt changes to LBL 3_, you can resume alpha input by pressing shift+alpha (and the prompt changes back to LBL "3_).

Never too old to learn, I didn't know that!
Cheers, Werner

Me, neither! I think the manual mentions entering one of the ALPHA sub-menus if you want to enter an alpha label that starts with a digit, but I'd never heard of (or thought of) this trick before.

Seems pretty simple to fix. I'll do it in the next release.

Thanks to ijabbott for pointing this out to me -- I don't follow this subforum, I usually only read General, Not Quite, and Not Remotely.
01-03-2019, 01:24 AM
Post: #7
 rprosperi Super Moderator Posts: 5,250 Joined: Dec 2013
RE: (42S) Three-Way Comparison, <=>, compare for Reals & a Problem on Free42
(01-02-2019 11:56 PM)Thomas Okken Wrote:  Seems pretty simple to fix. I'll do it in the next release.

@Thomas - Will this change in Free42 be inherited by DM42, or will the DM42's enhanced Alpha features need to handle this in the DM42 app code? In other words, should I post a link to this thread on the SM Forum to give David a head's up?

--Bob Prosperi
01-03-2019, 02:15 AM
Post: #8
 Thomas Okken Senior Member Posts: 1,765 Joined: Feb 2014
RE: (42S) Three-Way Comparison, <=>, compare for Reals & a Problem on Free42
(01-03-2019 01:24 AM)rprosperi Wrote:
(01-02-2019 11:56 PM)Thomas Okken Wrote:  Seems pretty simple to fix. I'll do it in the next release.

@Thomas - Will this change in Free42 be inherited by DM42, or will the DM42's enhanced Alpha features need to handle this in the DM42 app code? In other words, should I post a link to this thread on the SM Forum to give David a head's up?

I'm sure they can figure it out when they merge my update with their code.
01-03-2019, 03:43 PM
Post: #9
 rprosperi Super Moderator Posts: 5,250 Joined: Dec 2013
RE: (42S) Three-Way Comparison, <=>, compare for Reals & a Problem on Free42
(01-03-2019 02:15 AM)Thomas Okken Wrote:
(01-03-2019 01:24 AM)rprosperi Wrote:  @Thomas - Will this change in Free42 be inherited by DM42, or will the DM42's enhanced Alpha features need to handle this in the DM42 app code? In other words, should I post a link to this thread on the SM Forum to give David a head's up?

I'm sure they can figure it out when they merge my update with their code.

OK, thanks.

--Bob Prosperi
01-03-2019, 06:44 PM
Post: #10
 Thomas Okken Senior Member Posts: 1,765 Joined: Feb 2014
RE: (42S) Three-Way Comparison, <=>, compare for Reals & a Problem on Free42
(01-03-2019 03:43 PM)rprosperi Wrote:
(01-03-2019 02:15 AM)Thomas Okken Wrote:  I'm sure they can figure it out when they merge my update with their code.

OK, thanks.

Confirmed; the change is about eight new lines of code, all in one place, in the command-entry handler. Unless the DM42 extended-alpha code has tentacles all over the place, this change shouldn't affect it at all.

The greater open question is when I'm going to release 2.0.22. If I keep not having time to work on the iOS UI rewrite, I may end up deciding not to wait for that and release 2.0.22 for the other platforms first. I prefer releasing for all five platforms at the same time but sometimes things don't work out that way...
 « Next Oldest | Next Newest »

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