EasyManua.ls Logo

HP HP-28S User Manual

HP HP-28S
341 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
Page #259 background imageLoading...
Page #259 background image
• String operations. PAD demonstrates
how
to convert
an
object to
string form,
count
the
number
of characters,
and
concatenate two
strings.
Program
«
-tSTR
WHILE
DUP
SIZE
REPEAT
II
II
SWAP
END
»
I ENTER I
CJ
PAD I STO I
23
<
+
Comments
Begin the program.
Make sure the object is in string
form. (Strings are unaffected
by
this command.)
Begin WHILE clause.
Does the string contain fewer
than
23 characters?
Begin
REPEAT
clause.
Add
a leading space.
End
REPEAT
clause.
End
the
program.
Put
the
program
on
the
stack.
Store the program as PAD.
Example. PAD is demonstrated in
the
program BDISP.
PRESERVE (Save and Restore Previous Status)
Given a program
on
the
stack, store
the
current status, execute the
program,
and
then
restore
the
previous status.
Arguments
Results
1 :
«
program
»
1 : (result
of
program)
Techniques:
• RCLF
and
STOF. PRESERVE uses RCLF
(recall
[lags)
to record
the
current status of the calculator in a binary integer
and
STOF
(store
[lags)
to restore the status from
that
binary integer.
258
28:
Programming
Examples
I

Table of Contents

Other manuals for HP HP-28S

Question and Answer IconNeed help?

Do you have a question about the HP HP-28S and is the answer not in the manual?

HP HP-28S Specifications

General IconGeneral
Introduced1988
Memory32 KB
Number of Digits12
TypeScientific Calculator
ManufacturerHewlett-Packard (HP)
DisplayLCD
ProcessorSaturn
ProgrammingRPL

Summary

HP-28S Advanced Scientific Calculator Owner's Manual

Part 1: Fundamentals

Introduces basic operations, calculator features, and core concepts.

Getting Started

Covers initial setup, basic operations, and calculator overview.

Doing Arithmetic

Explains methods for performing calculations using stack and expressions.

Part 2: Summary of Calculator Features

Objects

Describes fundamental data types, symbolic operations, and programming elements.

The Command Line

Explains input methods, cursor control, and command entry.

The Stack

Reviews stack concepts and commands for manipulating objects.

Part 3: Programming

Program Structures

Covers conditional logic, loops, and error handling in programs.

Conditional Structures

Explains testing conditions and making decisions within programs.

Definite Loop Structures

Details structures for executing code a specific number of times.

Appendixes & Indexes

Appendix A: Assistance, Batteries, and Service

Provides troubleshooting, battery info, and service details.

Answers to Common Questions

Addresses frequent user queries and common calculator issues.

Appendix B: Notes for HP RPN Calculator Users

Highlights differences for users familiar with RPN calculators.

Appendix D: Menu Map

Lists commands by menu, with descriptions and page references.

Contacting Hewlett-Packard

Related product manuals