Python to RPN converter
|
06-12-2021, 03:42 AM
Post: #52
|
|||
|
|||
RE: Python to RPN converter
(06-12-2020 03:05 PM)Eddie W. Shore Wrote: This is excellent. I love this. > This is excellent. I love this. Thanks Eddie! - sorry for the late reply, somehow I just saw your post now. > * the lack of ROUND equivalent for the HP 42S HP42 has the built in command RND which you can invoke from Python e.g. you type RND(1.5) and convert it via https://pyrpn.atug.com which generates 1.5 RND but since the built in HP42S/Free42 RND works via the current display format, we seem to have to call FIX as well to pull this off. Thus a full example might be Python code: Code: LBL("untitled") which generates: Code: 01 LBL "untitle" > * how to handle the int command (set number as an integer) Perhaps type IP(myvar) into the Python to RPN converter - which generates the built in Free42 command IP. That's the closest command I can find. Here is a Python program to do both Code: def rndip(n): After conversion, and pasting into Free42, run with 1.5 XEQ RNDIP * Reminder: the Python to RPN converter is not related to Python in HP Prime CAS, nor the beta MicroPython App in HP Prime. It is a online website which converts Python into RPN which you can paste or type into Free42/HP42S/HP41. Help is https://pyrpn.atug.com/help |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)