5 ms·
Just a sidenote, but why do some software projects consider 0.11 higher than 0.7? I remember when jQuery did this it broke tons of plugins that used a simple n
by d23 12y ago
Just a sidenote, but why do some software projects consider 0.11 higher than 0.7? I remember when jQuery did this it broke tons of plugins that used a simple numerical comparison to see if the version was high enough (which seems sensible enough to me).
- freehunter 12y agoBecause 11 is higher than 7. It's not version 0.1.1 or version "dot one one", it's version "dot eleven". Eleven is a bigger number than seven is.
- tovmeod 12y agoit's true, 11 > 7 but 0.11 < 0.7
- freehunter 12y agoVersion numbers are not always decimal numbers.
- emddudley 12y ago0.11 is higher than 0.7 because version numbers aren't decimal numbers. The 0 is the "major" version number and the 11 or 7 is the "minor" version number. Many projects follow the Semantic Versioning convention. http://semver.org/ http://semver.org/