Hi.
I'm looking to compare version number against minimum version number.
The problem is that the version number has multiple segment. So, for example, the version number is 8.4.4 and I need to make sure it is not lower than 8.3.9 .
The current version number is easily retrievable, and the minimum version number is set as a template macro. Naturally, both values are stored as a string.
So I was thinking of the following approach: Convert the x.y.z string structure to x.yz number, and then compare it.
For example: Current version 8.4.4 will be converted to 8.44 , minimum version 8.3.9 will be converted to 8.39 , and I can then see that 8.44 is higher than 8.39 .
Can the above approach be implemented at the preprocessing ? How?
Any different ideas will be highly appreciated.
Thank you in advance!
Amit.
I'm looking to compare version number against minimum version number.
The problem is that the version number has multiple segment. So, for example, the version number is 8.4.4 and I need to make sure it is not lower than 8.3.9 .
The current version number is easily retrievable, and the minimum version number is set as a template macro. Naturally, both values are stored as a string.
So I was thinking of the following approach: Convert the x.y.z string structure to x.yz number, and then compare it.
For example: Current version 8.4.4 will be converted to 8.44 , minimum version 8.3.9 will be converted to 8.39 , and I can then see that 8.44 is higher than 8.39 .
Can the above approach be implemented at the preprocessing ? How?
Any different ideas will be highly appreciated.
Thank you in advance!
Amit.

Comment