En Tue, 07 Oct 2008 03:36:12 -0300, Lawrence D'Oliveiro
<[EMAIL PROTECTED]> escribió:
In message <[EMAIL PROTECTED]>, Gabriel
Genellina wrote:
As an example, in the oil industry here in my country there is a mix of
measurement units in common usage. Depth is measured in meters, but pump
stroke in inches; loads in lbs but pressures in kg/cm².
Isn't the right way to handle that to attach dimensions to each number?
Maybe, but I prefer the values to be plain float objects. In my case it's
not that units are dynamic themselves: "this" file format has depth in
feet, "that" one uses meters, but that's known from start. I think I'd
attach units to values if they were dynamic and I had to reproduce the
original format exactly, but hasn't happened yet (fortunately).
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list