Post Reply 
Programming Custom App
02-11-2020, 12:26 PM
Post: #1
Programming Custom App
Hi,

My old HP42s died and I'm in the run for a new calculator.

As automation engineer I do a lot conversion between Binary, Decimal (integer with 2s complement) and fractional number.

Since new calculators offer much more possibilities, I like to have the next feature.
(I've made a little Windows Forms App to demonstrate)
Youtube: Binary <-> Decimal conversion

If I type in the binary field, the decimal type should change.
If I type in the decimal field, the binairy field should change.

Is this possible to program on a HP Prime ?
Find all posts by this user
Quote this message in a reply
02-11-2020, 03:21 PM (This post was last modified: 02-11-2020 03:28 PM by dfsantos.)
Post: #2
RE: Programming Custom App
no need to program
Prime does this as standard
If You type in the binary field, the decimal and hexadecimal type should change.
If You type in the decimal field, the binary and hexadecimal field should change.
If You type in the hexadecimal field, the binary and decimal field should change.

   
Find all posts by this user
Quote this message in a reply
02-11-2020, 03:30 PM (This post was last modified: 02-11-2020 08:04 PM by Tonny.)
Post: #3
RE: Programming Custom App
(02-11-2020 03:21 PM)dfsantos Wrote:  Prime does this as standard
if I put in the camo I put a decimal and change hex and bin and the same if I change another field

Not exactly what I need.
The unsigned integer should convert to 2s complement.
And I also want IEEE754 conversion.

IEEE 754 conversion
Find all posts by this user
Quote this message in a reply
02-14-2020, 02:21 PM
Post: #4
RE: Programming Custom App
(02-11-2020 12:26 PM)Tonny Wrote:  Is this possible to program on a HP Prime ?

Yes, of course.

The simplest way would not work as you describe, but it will require entering something and then pressing/tapping something (using INPUT command). A more complex approach would work as you demo in that video, but it would need some more work (listening keypresses and drawing on the screen).

My website: erwin.ried.cl
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 




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