HP Forums
Unit conversions inside programs on 50g - Printable Version

+- HP Forums (https://archived.hpcalc.org/museumforum)
+-- Forum: HP Museum Forums (https://archived.hpcalc.org/museumforum/forum-1.html)
+--- Forum: Old HP Forum Archives (https://archived.hpcalc.org/museumforum/forum-2.html)
+--- Thread: Unit conversions inside programs on 50g (/thread-239516.html)



Unit conversions inside programs on 50g - Chris Smith - 02-22-2013

Decided to delve accidentally into units inside a program on the 50g. After dredging the abysmal manual, I can't work out how to add a unit to top of stack value inside a program. I can do it not via a program by using the units menu, but am stumped as to how to represent it.

My stack looks like this to start with:

2: 45.5
1: 125

What I want to achieve is the following on the stack:

2: 45.5
1: 125_gal

Also does someone fancy writing HP a proper manual :-)

Any help appreciated!


Re: Unit conversions inside programs on 50g - Eric Smith - 02-22-2013

How about:

1_gal *



Re: Unit conversions inside programs on 50g - Chris Smith - 02-23-2013

Thanks. That did the trick perfectly. I was looking for a much more complicated solution.

I use type coercion regularly, but never thought of unit coercion!