HP Forums
Programming Custom App - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: Programming Custom App (/thread-14491.html)



Programming Custom App - Tonny - 02-11-2020 12:26 PM

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 ?


RE: Programming Custom App - dfsantos - 02-11-2020 03:21 PM

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.

[attachment=8084]


RE: Programming Custom App - Tonny - 02-11-2020 03:30 PM

(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


RE: Programming Custom App - eried - 02-14-2020 02:21 PM

(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).