Re:[Python-ideas] List Revolution
by oxtopus on Saturday September 10, 2011 @10:12AM
(#2981602)
Meanwhile, some people do count up from zero. At least in numbering floors in a building. I know in Europe and other parts of the world the ground floor is the zeroth floor, and it goes up from there.
[ Parent
| on HN ]
Yeah, a lot of the buildings at my university are numbered that way. But not even in Europe would one count a stack of paper as "zero, one, two, three..."
Numerically, yes, but nobody calls it a "zeroth" floor. Rather, its "ground", "first", "second" (or G, 1, 2, 3...) so while ground is equivalent to zero, nobody actually says (or thinks) zero. At least, nowhere I've been.
So let's just call it the "ground" index.
G = ground = 0;
A[G], A[1], A[2], ...Where I work, rooms on the 1st floor have numbers like 1.01, 1.02 etc., on the ground floor it's 0.01, 0.02 etc., and in the basement it's -1.01, -1.02 etc.
This is confusing for some people (unfamiliar with the situation), who need to go to a number in the basement but consistently turn up two floors higher.