Post Reply 
Simple programming help with the Prime
06-10-2014, 11:49 AM (This post was last modified: 06-10-2014 12:04 PM by Didier Lachieze.)
Post: #18
RE: Simple programming help with the Prime
(06-10-2014 09:59 AM)Angus Wrote:  In a program
(...)
RETURN " 32 4 R→B(3)"; //hex interpretation
(...)

I may not understand what your program is trying to accomplish but maybe you can use something like that:
Code:
EXPORT tohex(X)
BEGIN
  RETURN (R→B(X,32,4));
END;

then in RPN interactive mode: 123 [ENTER]* tohex() will return #7Bh
in algebraic interactive mode: tohex(123) will return #7Bh
at the end of a user program: RETURN tohex(123); will return #7Bh

* you may skip ENTER, 123tohex() on the command line works as well
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Simple programming help with the Prime - Didier Lachieze - 06-10-2014 11:49 AM



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