Re: Units of measurement

2007-01-19 Thread Tim Roberts
Paul Rubin 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 = 18

Re: Units of measurement

2007-01-17 Thread Robert Kern
Russ wrote: > Robert Kern wrote: >> And there was another one announced here sometime in the past year or so, >> IIRC, >> but I don't recall the name of it or that of the author. :-( > > Perhaps you are referring to the scalar class at > http://RussP.us/scalar.htm Yup, you're the one. -- Rob

Re: Units of measurement

2007-01-17 Thread Russ
Robert Kern wrote: > Paul Rubin 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. > > Oh yeah, it's been done before. Several times over, in fact.

Re: Units of measurement

2007-01-17 Thread Robert Kern
Paul Rubin 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. Oh yeah, it's been done before. Several times over, in fact. Unum http://home.tiscali.be/be0