I have a version number as string which is exactly like this: 16.041.3.137.
My goal is to parse each individual part into a floating point number, so you can use a >= as a comparison for each part.
Parsing the first, third and fourth part is easy, but the second one is a little tricky. If you parse it with base 10 you get a result of 4 - which is not correct.
The result of the second part "041" should be a exact floating point of 0.41. It should never round up or down.
So my question is, what do i need to do to construct a floating point manually: I have the count of leading zeros and the decimal value after that.
Is that possible?
Thanks!