Page 1 of 1

AIP <=> "AFP"

Posted: Sat Mar 24, 2018 11:19 am
by mcc
Hi,

THIS IS BY NO WAY A EXPLICIT OR IMPLICIT CRITISM, BUG REPORT OR SUCH THING!
This question is driven by pure curiosity... !

There is a command "AIP" for the HP42s/Free42s/DM42, which cuts off the digits after the
decimal point/comma and put the ASCII representation of the remaining integer part into
the Alpha register.

But its counterpart "AFP" is missing despite there exists IP an FP.

What could be the reason for HP's decision to do so?

Cheers!
Have a nice weekend!
Meino

Re: AIP <=> "AFP"

Posted: Sat Mar 24, 2018 11:54 am
by Walter
mcc wrote:
Sat Mar 24, 2018 11:19 am
There is a command "AIP" for the HP42s/Free42s/DM42, which cuts off the digits after the
decimal point/comma and put the ASCII representation of the remaining integer part into
the Alpha register.

But its counterpart "AFP" is missing despite there exists IP an FP.
I'd miss an "APNUM" more -- appending an entire real number in the current output format to the alpha string in the respective register. Appending just fractional parts doesn't make any sense to me. YMMV

Re: AIP <=> "AFP"

Posted: Sat Mar 24, 2018 12:32 pm
by dlachieze
mcc wrote:
Sat Mar 24, 2018 11:19 am
But its counterpart "AFP" is missing despite there exists IP an FP.

What could be the reason for HP's decision to do so?
AIP is useful when you work with loop counters ccccccc.fffii to be able to display the current count without the fractional part. I don't see a similar need for AFP.
Walter wrote:
Sat Mar 24, 2018 11:54 am
I'd miss an "APNUM" more -- appending an entire real number in the current output format to the alpha string in the respective register.
Isn't it what ARCL does already?

What I'm missing on the 42 from the 41C X-Functions is ANUM.

Re: AIP <=> "AFP"

Posted: Sat Mar 24, 2018 3:09 pm
by pcscote
dlachieze wrote:
Sat Mar 24, 2018 12:32 pm
Isn't it what ARCL does already?
Yep!
Using IP or FP while playing with FIX xx and flags 28/29 you can get pretty much get what you need.
Unfortunately STOFLAG/RCLFLAG functions from HP-41 XFM module are missing.
Sylvain

Re: AIP <=> "AFP"

Posted: Sat Mar 24, 2018 3:46 pm
by Walter
dlachieze wrote:
Sat Mar 24, 2018 12:32 pm
Walter wrote:
Sat Mar 24, 2018 11:54 am
I'd miss an "APNUM" more -- appending an entire real number in the current output format to the alpha string in the respective register.
Isn't it what ARCL does already?
Thanks for pointing to it -- obviously slipped my attention.

Re: AIP <=> "AFP"

Posted: Fri Apr 06, 2018 11:03 pm
by hpgene
walter wished for "pending an entire real number in the current output format"

dlachieze replied: Isn't that what ARCL does?

To which Sylvain replied: Using IP or FP while playing with FIX xx and flags 28/29 you can get pretty much get what you need.


Gene: Ah, but the original feature request was to add the entire real number in the current output format. ARCL does just that. No flags needed since the original format was specified. :-)

Re: AIP <=> "AFP"

Posted: Sat Apr 07, 2018 8:05 am
by Walter
hpgene wrote:
Fri Apr 06, 2018 11:03 pm
walter wished for "pending an entire real number in the current output format"
Even proper copying and pasting seems to be difficult. And the original question was answered already ... but not by everybody yet.