title: Convert String (representing decimal number) to long
body: <p>I've googled around a bit but could not find examples to find a solution. Here is my problem:</p>
  
  <pre><code>String s = "100.000";
  long l = Long.parseLong(s);
  </code></pre>
  
  <p>The 2nd line of code which tries to parse the string 's' into a long throws a <strong>NumberFormatException</strong>.</p>
  
  <p>Is there a way around this? the problem is the string representing the decimal number is actually time in milliseconds so I cannot cast it to int because I lose precision.</p>