title: Android compare values with multiple decimal points
body: <p>I want to check application versions to implement a force update feature from the server. I want to check values such as 1.1.5, 1.1.6 to see which is greater, I am getting this values as a string from the server and I'm getting a number format exception parsing that string to a float value before being able to compare. Here is my code:</p>
  
  <pre><code>String server_app_version = versionObj.getString("android");
  String  version = info.versionName;    
  float server_version = Float.parseFloat(server_app_version);
  float current_version = Float.parseFloat(version);
  </code></pre>
  
  <p>How can i compare if server_version > current_version ?</p>