From: masa@... Date: 2001-03-19T12:18:40+09:00 Subject: [ruby-talk:12839] Re: units of measure >From: Mathieu Bouchard >Subject: [ruby-talk:12821] units of measure > This is something i wrote a month ago. I'm not doing anything with it for > now, so I post it in case someone wants to pick it up. It's a system so > that units of measure can be computed together (class Unit) and so that > numeric values can be attached units (class Quantity) Oh, I have same idea, too. I have just finished unit parser, which can read "1e-26 W/(m2 Hz)". Reading units.dat in, unit conversion like cm <-> inch is available. I am writing a class like your Quantity, featuring Units(3,'cm') + Units(2,'inch') #=> Units(8.08,'cm') but it's not finished. M.Tanaka