Re:[Python-ideas] List Revolution
by dkersten on Saturday September 10, 2011 @10:41AM
(#2981641)
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.
[ Parent
| on HN ]
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.