title: Jmeter: Typed variable declaration : Method Invocation Double.parseDouble
body: <p>Hey I'm doing some beanshell scripting for API testing in jmeter. I've written quite a few jmeter scripts with beanshell and it works fine when using <code>Integer.parseInt()</code> method invocation, but I have a value with decimal places where my SQL returns a value of 20.00000 and my Json path extractor gets 20.0 so my test fails when comparing it. Because of this problem I decided to compare this values as double variables instead of Strings but I'm getting the error bellow when using Double.parseDouble on BeanShell.</p>
  <blockquote>
  <p>2016/08/17 12:48:45 ERROR - jmeter.util.BeanShellInterpreter: Error invoking bsh method: eval Sourced file: inline evaluation of: <code>print(&quot;Width Assertion...&quot;);  int Total_Printers_SQL = Integer.parseInt(vars.get . . . ''</code> : Typed variable declaration : Method Invocation Double.parseDouble</p>
  <p>2016/08/17 12:48:45 WARN  - jmeter.assertions.BeanShellAssertion: org.apache.jorphan.util.JMeterException: Error invoking bsh method: eval    Sourced file: inline evaluation of: <code>print(&quot;Width Assertion...&quot;);  int Total_Printers_SQL = Integer.parseInt(vars.get . . . ''</code> : Typed variable declaration : Method Invocation Double.parseDouble</p>
  </blockquote>
  <p>Even with the errors displayed the value of the double variable is printed on Jmeter prompt as you can see below.</p>
  <p><a href="https://i.stack.imgur.com/xuK4E.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xuK4E.png" alt="enter image description here" /></a></p>
  <p>If anyone's a beanshell expert and could help me identify the error, that'd be awesome. Thanks!</p>