D
D
dollar2018-10-20 13:07:46
Software and Internet Services
dollar, 2018-10-20 13:07:46

How do product versions increase?

For example, comparing versions line by line gives the following result: That is, if v1.2 is the same as v1.20, then the result is correct. On the other hand, if it's just a subversion number, then in theory it should be 2 < 11. How is it actually correct?
"v1.2" > "v1.11" //true

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2018-10-20
@dollar

https://en.wikipedia.org/wiki/Software_versioning
"v1.2" ? "v1.11"
1 = 1
2 < 11
1.2 < 1.11
"v1.2" ? "v1.1.11"
1 = 1
2 > 1
1.2 > 1.1.11
Find a version comparison package and use it to compare versions

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question