User Tools

Site Tools


version-library

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

version-library [2020/05/22 12:18] (current)
maxime created
Line 1: Line 1:
 +====== Version library ======
  
 +===== cmp =====
 +
 +Compare two version numbers
 +
 +Returns:
 +  * 0 if ''​version1 == version2''​
 +  * -1 if ''​version1 < version2''​
 +  * 1 if ''​version1 > version2''​
 +
 +''​integer **version.cmp**(//​version1//,​ //​version2//​)''​
 +
 +^ Name ^ Type ^ Description ^
 +| //''​version1''//​ | ''​string''​ |  |
 +| //''​version2''//​ | ''​string''​ |  |
version-library.txt ยท Last modified: 2020/05/22 12:18 by maxime