title: Java: convert string to double\long, divide by 100 and convert it back to string (SpEL)
body: <p>This is what I have:</p>
  
  <p>A string var <code>amount</code> with value: <code>"123.45"</code>.</p>
  
  <p>What I need is to divide it by 100 on a SpEL expression. So I went like this:</p>
  
  <pre><code>T(java.lang.Double).valueOf(amount) / 100D
  </code></pre>
  
  <p>And then, return the result as a string again.</p>
  
  <p>How can I achieve it? I tried </p>
  
  <pre><code>T(java.lang.Double).toString(T(java.lang.Double).valueOf(amount) / 100D)
  </code></pre>
  
  <p>but is not working. And instead of dividing is multipling for some reason :-\</p>
  
  <p>Thanks in advance</p>