HP Forums

Full Version: Is there a way to use %TOTAL or similar in RPN? (Solved)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
As the title says.

I was in need to make several %TOTAL but could not do it in the Prime, so I quick grabed a 39GII and could do the job very easy. Later on I discoverd that in the catolog we can use %TOTAL , but only in textbook.

I searched the manual and this forum and find nothing.

Thanks in advance

Cheers

JL
(05-09-2019 02:39 PM)Jlouis Wrote: [ -> ]As the title says.

I was in need to make several %TOTAL but could not do it in the Prime, so I quick grabed a 39GII and could do the job very easy. Later on I discoverd that in the catolog we can use %TOTAL , but only in textbook.

I searched the manual and this forum and find nothing.

Thanks in advance

Cheers

JL
It works the same way all functions work in RPN. You put the arguments on the stack then use the number of arguments as the argument to the function:

instead of %TOTAL(20,50) do this:

20
Enter
50
Enter
%TOTAL(2)

and you'll get 250 which is the right answer. You use 2 in the parentheses since there are two arguments needed by %TOTAL.
(05-09-2019 03:14 PM)toml_12953 Wrote: [ -> ]
(05-09-2019 02:39 PM)Jlouis Wrote: [ -> ]As the title says.

I was in need to make several %TOTAL but could not do it in the Prime, so I quick grabed a 39GII and could do the job very easy. Later on I discoverd that in the catolog we can use %TOTAL , but only in textbook.

I searched the manual and this forum and find nothing.

Thanks in advance

Cheers

JL
It works the same way all functions work in RPN. You put the arguments on the stack then use the number of arguments as the argument to the function:

instead of %TOTAL(20,50) do this:

20
Enter
50
Enter
%TOTAL(2)

and you'll get 250 which is the right answer. You use 2 in the parentheses since there are two arguments needed by %TOTAL.

VoilÄ!

Really thanks! I searched the manual and didn't find this!

Cheers!
or just use

20
Enter
50
Enter
%TOTAL or %TOTAL()

like any other function that by default takes two parameters.
The Finance App has a very good percentage tool
(05-09-2019 07:10 PM)Wes Loewer Wrote: [ -> ]or just use

20
Enter
50
Enter
%TOTAL or %TOTAL()

like any other function that by default takes two parameters.

Yeah, but I wear a belt and suspenders! Overkill is my business Big Grin
(05-09-2019 08:19 PM)Dirk.nl Wrote: [ -> ]The Finance App has a very good percentage tool

Thanks Dirk, I didn't know that, really practical and usefull.

I'm still discovering the Prime, after waiting for buying the G2 living in Brazil is a bit frustating, I decided to buy the G1 and I'm having fun with it.

Cheers
Reference URL's