From: Klaus Stein Date: 2003-02-09T19:11:46+09:00 Subject: Re: [ANN] math-const 1.0.0 Daniel Carrera wrote: > I just added a Math/const module to RAA. It provides mathematical and > physical constants both in the MKS and CGS system. I like this. Wouldn't it be nice to be able to write SPEED_OF_LIGHT.unit -> m / s (I think this should be easy by subclassing Float). I also would like to do calculations on units, so that I can write: s=FwU.new(100,Unit.m) # shold be shorter, perhaps: s=FwU(100,:m) t=FwU.new(10,Unit.s) v=s/t v --> 10 v.unit --> [[Unit.m, 1], [Unit.s, -1]] # any ideas to do this nicer? but I don't know this is wort bothering (does anyone really need this?) Stony (42) -- ====================================== The Answer is 42. And I am the Answer. Now I am looking for the Question. ======================================