Post Reply 
Converting
02-06-2015, 04:30 PM
Post: #31
RE: Converting
(02-04-2015 07:31 PM)Han Wrote:  Make a customized key that brings up a full choose-menu...

As usual, great problem-solving code snippets from Han, but it wouldn't be complete without a 50g solution too.
Here's what I use on the 50g:

Code:

{ { "l" { << 1_l * >> << 1_l CONVERT >> } } { "gal" { << 1_gal * >> << 1_gal CONVERT >> } }
'CST' STO

It's a simple custom menu, in which using the unit unshifted will apply the unit to a number, while using it with the white shift will convert the number on the stack to that unit.

So the example of the 50 liters to galons would be:

1. Press CST
2. 50
3. Press l [F1]
4. Press Shift-[F2] (shift-gal)
5. 75
6. Press l [F1]
7. Press Shift-[F2] (shift-gal)

Of course it can be extended with as many units as you want.

Claudio
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Converting - marcusnicolas1 - 01-24-2015, 03:18 AM
RE: Converting - toml_12953 - 01-24-2015, 06:06 AM
RE: Converting - Miguel Toro - 02-01-2015, 01:15 PM
RE: Converting - Joe Horn - 01-25-2015, 01:12 AM
RE: Converting - toml_12953 - 01-25-2015, 03:57 AM
RE: Converting - rprosperi - 01-25-2015, 04:28 AM
RE: Converting - marcusnicolas1 - 02-01-2015, 02:59 AM
RE: Converting - Joe Horn - 02-01-2015, 06:02 AM
RE: Converting - retoa - 02-03-2015, 09:49 PM
RE: Converting - Offroad - 02-03-2015, 10:24 PM
RE: Converting - retoa - 02-03-2015, 10:48 PM
RE: Converting - Offroad - 02-03-2015, 11:09 PM
RE: Converting - Joe Horn - 02-04-2015, 12:34 AM
RE: Converting - retoa - 02-04-2015, 07:15 AM
RE: Converting - Joe Horn - 02-05-2015, 06:52 AM
RE: Converting - retoa - 02-05-2015, 07:25 AM
RE: Converting - Tim Wessman - 02-03-2015, 11:17 PM
RE: Converting - ndzied1 - 02-03-2015, 11:45 PM
RE: Converting - Offroad - 02-03-2015, 11:54 PM
RE: Converting - ndzied1 - 02-04-2015, 01:45 AM
RE: Converting - ndzied1 - 02-04-2015, 06:56 PM
RE: Converting - retoa - 02-05-2015, 10:41 AM
RE: Converting - Han - 02-04-2015, 07:31 PM
RE: Converting - Claudio L. - 02-06-2015 04:30 PM
RE: Converting - Angus - 02-05-2015, 09:18 AM
RE: Converting - Han - 02-05-2015, 07:06 PM
RE: Converting - ndzied1 - 02-05-2015, 07:13 PM
RE: Converting - Offroad - 02-05-2015, 07:23 PM
RE: Converting - retoa - 02-05-2015, 07:49 PM
RE: Converting - ndzied1 - 02-05-2015, 08:29 PM
RE: Converting - Han - 02-05-2015, 08:57 PM



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