HP Forums

Full Version: Programming Custom App
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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 ?
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]
(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
(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).
Reference URL's