Errn, Errm, Err0 – HP 50g Graphing Calculator User Manual
Page 712: Lastarg, Sub-menu iferr

Page 21-65
If you enter “TRY AGAIN” `
@DOERR, produces the following message: TRY
AGAIN
Finally, 0`
@DOERR, produces the message: Interrupted
ERRN
This function returns a number representing the most recent error. For example,
if you try 0Y$
@ERRN, you get the number #305h. This is the binary
integer representing the error: Infinite Result
ERRM
This function returns a character string representing the error message of the
most recent error. For example, in Approx mode, if you try 0Y$
@ERRM,
you get the following string: “Infinite Result”
ERR0
This function clears the last error number, so that, executing ERRN afterwards, in
Approx mode, will return # 0h. For example, if you try 0Y$
@ERR0 @ERRN,
you get # 0h. Also, if you try 0Y$
@ERR0 @ERRM, you get the empty string
“ “.
LASTARG
This function returns copies of the arguments of the command or function
executed most recently. For example, in RPN mode, if you use: 3/
2`
, and then use function LASTARG (
@LASTA), you will get the values 3 and
2 listed in the stack. Another example, in RPN mode, is the following:
5U`
. Using LASTARG after these entries produces a 5.
Sub-menu IFERR
The
@)IFERR sub-menu provides the following functions: