Unit conversions inside programs on 50g



#4

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!


#5

How about:

1_gal *

#6

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!


Possibly Related Threads...
Thread Author Replies Views Last Post
  Interesting Base Conversions - Porting a 1975 HP 25 Program to the HP 35S Eddie W. Shore 1 182 10-13-2013, 07:49 PM
Last Post: BruceH
  Unit circle on HP Prime Mic 2 187 08-28-2013, 05:22 PM
Last Post: Thomas Klemm
  Strings inside matrix editor on 50g Chris Smith 3 222 05-22-2013, 04:04 PM
Last Post: Chris Smith
  Decimal/Binary Conversions for the HP 39gii - 3/16/2013 Eddie W. Shore 0 148 03-16-2013, 04:30 PM
Last Post: Eddie W. Shore
  Transfering programs from HP 48G to HP 50G wildpig 4 229 08-07-2012, 06:04 PM
Last Post: wildpig
  PocketGuide in Portuguese / Guia de Bolso *inside* the HP 50g Software49g 4 223 07-18-2012, 02:03 PM
Last Post: Gerson W. Barbosa
  17bii unit conversions Dave Britten 12 490 03-27-2012, 11:59 AM
Last Post: Dave Britten
  WP 34S adding own conversions Lourensk 4 201 03-24-2012, 02:45 PM
Last Post: Walter B
  Re: Voyager 1xC emulation in the same unit? uhmgawa 4 257 01-24-2012, 01:09 AM
Last Post: uhmgawa
  Dave Ramsey et al with early HP 41C conversions to CL Geoff Quickfall 4 245 01-01-2012, 12:51 AM
Last Post: David Ramsey

Forum Jump: