[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 0.01-6 > 0.1-3 ?????



Glenn McGrath writes:
> Yes, i am obviously wrong, trying to compare 0.9 and 0.10 is incorrect,
> as is treating 0.1 as equal to 0.01

Think about it this way.  Replace the '.'s field delimiters (they aren't
decimal points) with ':'s and compare the integers in corresponding fields.
It then becomes obvious that in this system leading zeros are not
significant (and should not be used).  One could treat a '.' as a decimal
point if and only if it precedes a zero, but it's too late to change the
system now, and I'm not sure it wouldn't be even more confusing that way.

I got bit by this once too.  I barely avoided having to use an epoch.
-- 
John Hasler
john@dhh.gt.org
Dancing Horse Hill
Elmwood, Wisconsin


-- 
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: