Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The thing to remember is that version numbers aren’t decimals. They’re two or three integers separated by periods.

11 is higher than 2.



I don't know what the source of this convention is, but this is why I was taught that the version "1.2.3" should be read aloud as "one dot two dot three" instead of "one point two point three". The idea is that people--where I'm from at least--tend to read decimals as "point" and not "dot".


Yes, sadly the proliferation of the "two point oh" meme has set society back on that front. (Had we the opportunity to start over, I would have proposed different punctuation for the delimiter to avoid natural confusion with decimals.)


Harumph. Then it should be padded with zeros. So, 4.002 and 4.011

/grumpy

edit: nope, it's fine as is. my experience in frame numbers, dates, and so forth do not scale to releases


4.0.0 (semver) and 4.0.0.0 (Windows) aren't valid numbers anyways; The confusion can only arise on X.Y version numbers. Just add a .0 at the end of those


But why? You don't know how many decimals you'll need in advance - three digits isn't enough for Windows build number, for example.


Some years ago I thought so too. Now I'm just used to it.


Dates are the same, though — 01.15.2018 is not a real number, it's a sequence of integers. (And in many places they're not even written in most-to-least or least-to-most significant order! …I guess that makes it a tuple, not a sequence.)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: