Post Reply 
HP 48GX - Center Text in the Display Area
09-03-2023, 02:17 PM
Post: #7
RE: HP 48GX - Center Text in the Display Area
(08-27-2023 04:48 PM)MNH Wrote:  How would I center text in the display area?

\<< DUP SIZE NEG 22 +
2 / \-> f \<< " " 1 f
START " " + NEXT
SWAP + \>>
\>>

1: "text string"

The above example string contains 11 characters. That means I'm left with 5.5 spaces proceeding and preceding the string if it were centered in the display area. My code fails because I can't use half of a space. What can I do?

Hi all. I haven’t programmed my 48 in a while.
Please let me know what \>> and \-> f \<< are and how to type them in. Thank you.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: HP 48GX - Center Text in the Display Area - Matt Agajanian - 09-03-2023 02:17 PM



User(s) browsing this thread: 1 Guest(s)