[Date Prev][Date Next][Subject Prev][Subject Next][ Date Index][ Subject Index]

Re: Re Keystrokes: Possible BIOS compatibility



** Reply to message from Harry Binswanger  on Sat, 30 Jul 2005
01:00:45 -0400


>>> From: J R FOX 
>>> I'm sure you New Yorkers would give me an argument on
>>> this, but I'd guess a metrics converter has to be more
>>> *regularly* useful than that X-Streets frame. (Though
>>> it certainly made for a neat U2 demo.)

>> It's more than a demo if you're based in NYC! I use it all the time.

> Me, too.
> Harry Binswanger

Me, too. Besides, U2 converts measures that you can't usually calculate in
your head. Whereas English==>metric and v.v. is easy. Which is to say, that
if you need English-metric conversion, you've likely already got rules-of-thumb
embedded in your brain (1.6 km|.6 miles|2.6mm|1.1yards|21/20ths of a quart); if
you don't need it, then you don't need it.

But here's a simple converter anyway, for distances, fluids, and weights.
DECODE it, DeFine it, then "ADD2U2".

Converts (either way) from a *decimal* base:
MM CM MeTers KM <==> DeciInches INches FeeT YarDs MIles
LiTers <==> OuNces(fluid) PinTs QuarTs GaLlons
MG GM KG <==> OZ LB ToNs

Input, e.g., "metric 4.82qt"
Returns "4.56142146 lt"

XPLeNCODE v2.0
b-gin [UNTITLED]
{{;5metric}} Convert MM CM MeTer KM/DI IN FT YD MI|LiTer/ON(f
luid) PT QT GaL|GM KG/OZ LB ToN S/G50In/Out RJH 7/31/05[cr|
lf]{002}{<}SX50,@UPR({<}IS50{>}){>}{<}SX01,{<}VA|50{>}-2{>}{<
}IF{<}PV01{>}<1{>}{<}PRUsage: valuemeasure, e.g. "metric 9.4c
m"{>}{<}EX{>}{<}EI{>}{<}SV02,{>}{<}CUA,01{>}{<}SX02,
{<}IS02{>}+"{027}X"{>}{<}LBA{>}{<}XS50,02,,02,01{>}{<}IF("|"+
{<}IS01{>}+"|"){238}"|CM|DI|FT|GL|GM|IN|KG|KM|LB|LT|MG|MI|MM|
MT|ON|OZ|PT|QT|TN|YD|"<0{>}{<}PRMeasures: MM CM MT KM/DI IN F
T YD MI|LT/ON(fluid) PT QT GL|MG GM KG/OZ LB TN{>}{<}EX{>}{<}
EI{>}{<}SV03,|DI/mm/2.539954113|MM/in/3.937079|IN/cm/2.539954
113|CM/in/.3937079|FT/mt/.3047944|MT/ft/3.2808991|YD/mt/.9144
|MI/km/1.6103|KM/mi/.621|MG/oz/.000035274|GM/oz/.035274|OZ/gm
/28.349523|KG/lb/2.204623|LB/kg/.453592|TN/kg/ 1016.0469|ON/l
t/.029574|PT/lt/.473177|QT/lt/.946353|GL/lt/3.785412|LT/gl/.2
64172|{>}{<}SX04,"|"+{<}IS01{>}+"/"{>}{<}XS03,04,,04,05{>}{<}
SV04,/{>}{<}XS05,04,03,,06{>}{<}SV04,|{>}{<}XS06,04,05,,07{>}
{<}SX50,{<}PV02{>}*{<}PV05{>}{>}{<}SX02,{<}IS50{>}+" "+{<}IS0
3{>}{>}{<}PR@02{>}{002}[cr|lf][cr|lf]
-nd
XPLeNCODE

-----------------------------
Robert Holmgren
holmgren@xxxxxxxx
-----------------------------