EasyManua.ls Logo

HP 48GII

HP 48GII
653 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
2-24 RPL Programming Examples
Program: Comments:
!!!!!5=:6E!+o+!<NBE!8![[!
!
!
!!!!!<=4!
!!!!!67!3!7DbO!
Repeat the DO...UNTIL loop until m = 0
(i.e. all decimal value have been
accounted for).
Is flag 1 set? Clear the flag after the test.
!!!!!:;<=!I8I!'!
Then add a placeholding zero to the result
string.
!!!!!!Y;6E<!t!+|+!<NBE!
!!!!!!!0!8!A!
Begin WHILE...REPEAT loop to
determine if additional placeholding zeros
are needed.
Loop repeats as long as i
k.
!!!!!!K<2<B:!I8I!'!
!!!!!!!3!+|+!D:L'!
!
!!!!!!<=4!
!!!!!<=4!
!!!!1!
Add an additional placeholding zero and
increment k before repeating the test-
clause.
End the WHILE...REPEAT...END loop,
the IF...THEN...END structure, and the
inner local variable structure.
!!!I!%$Z)I!%!'!
!!!G!DYB2!'!#:B>!*!D:L7!
End the outermost
IF...THEN...ELSE...END structure and
create the label string and tag the result
string using the original arguments.
Also restore original flag settings.
!!1!
1!
`OnBASE K
Stores the program in nBASE.
Checksum: # 54850d
Bytes: 433
Example: Convert 1000
10
to base 23.
1000 `23 J %NBASE%
Verifying Program Arguments
The two utility programs in this section verify that the argument to a program is the correct object type.
! NAMES verifies that a list argument contains exactly two names.
! VFY verifies that the argument is either a name or a list containing exactly two names. It calls NAMES if the
argument is a list.
You can modify these utilities to verify other object types and object content.
NAMES (Check List for Exactly Two Names)
If the argument for a program is a list (as determined by VFY), NAMES verifies that the list contains exactly
two names. If the list does not contain exactly two names, an error message appears in the status area and
program execution is aborted.

Table of Contents

Other manuals for HP 48GII

Related product manuals