Alright, fair point. Clearly there are merits to both systems (see other answers). If there's a floor -1 and a floor 1 I'd expect there to be a floor 0 between them, and I don't think anyone would propose that floor 0 would have you climb down from street level to reach. That's why it makes sense to have ground floor at 0 to me.
It also might help to call them floor 1, floor 2 etc. instead of first floor, second floor, etc.. It's kind of like how the 20th century is the one going 19xx. So the 20th floor being floor 19 isn't too farfetched.
I am aghast that you assume I use floats anywhere in my code. The cookie has an eaten flag and in one tick it goes from false to true. If you want partial cookie eating tracking we can plan a future update.
How'd y'all communicate with builders? Do you say this building has 0 floors to say that it's si gle story and say that it has 1 floor to mean that it's 2-story?
Well in my native language the word for ground floor would translate to something like "next to ground" and above that would be first floor which would be "above ceiling" in direct translation
Because it has a special place, i.e. it's leveled with the ground, so anything above it you need to climb up, anything below it you need to climb down.
Think of it this way, floor is a synonym with level, if I asked you to tell me which level the ground is at the only logical answer is 0, if you say the ground is at level 1 that implies that the first basement is level 0 which sounds ridiculous.
If you're in an elevator that has the numbers from -5 to 15, where is the only logical place for the ground to be at?
So to preface this, it's all arbitrary so there isn't a right or wrong as long as it's consistent.
The question might be better phrased this way: are we numbering distance or counting spaces?
If the year is 2024, what century is it? How about if the year is 700? How about if the year is "-700” (700 BCE)? Now which century is the zero century? 🤔 It doesn't make sense to ask I don't think.
So really the US System counts the spaces up, then the spaces down as stories. Ground is the same as 1, and Basement is same as -1. I have never ever seen a building (or elevator) with a number line in it or with negative numbers. NOW if you put altitude in the elevator in, say, 10ft increments or so, I would have no choice but to agree with your strange European ways.
It would be more complex if the US didn’t believe in 13th floor story and UK did.
Even though both would have 14th floor on the same level from the ground, there is a lot that would be missed if you only elevated straight from the parking basement to your 14th floor.
I'm pretty sure that format or where the first floor is labeled "1" is the most common where I live.
Labeling the second floor the first floor is frankly insane.
Edit: or maybe we do call the second floor the first floor. Not sure. Still stupid though but it's not as stupid in my language because we don't say "floor" but if you're going to say floor you should count the actual floors.