Units of measurement

Tim Roberts timr at probo.com
Fri Jan 19 03:35:59 EST 2007


Paul Rubin <http://phr.cx@NOSPAM.invalid> wrote:
>
>I'm sure this has been done before, but it just struck my fancy, an
>example of Python's "emulating numeric types", inspired by the old
>Unix "units" utility, and the Frink language.  
>...
># could include more units but you get the idea
>...
>c = 186282*mile/second
>print 'speed of light =', c/(furlong/fortnight), 'furlongs per fortnight'
># ...

I could not skip to the next message without cutting, pasting, and
executing that script to find out what the speed of light actually was in
furlongs per fortnight.

Now I need to figure out how to work that into a cocktail party
conversation.  "Hey, the deficit isn't the only thing that is approaching
1.8 trillion..."
-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the Python-list mailing list