Good morning all,
I am trying to compare two floats, they are in fact application version numbers.
The code is old and in python 2.7 because certain modules have not been ported over to 3 yet.
The dilemma I have having is that Python says 1.9 is greater than 1.10
I can only assume it is reading it as 1.9 vs 1.1 as as opposed as 1.10.
I have tried them as strings, ints and floats but can't seem to get it to give the correct answer of what is larger.
Is there a way round this?
I am trying to compare two floats, they are in fact application version numbers.
The code is old and in python 2.7 because certain modules have not been ported over to 3 yet.
The dilemma I have having is that Python says 1.9 is greater than 1.10
I can only assume it is reading it as 1.9 vs 1.1 as as opposed as 1.10.
I have tried them as strings, ints and floats but can't seem to get it to give the correct answer of what is larger.
Is there a way round this?