title: How to solve "operator * cannot be applied to java.lang.string"?
body: <p>I have been trying to convert value to decimal such as RM108.00. I have used
    the method <code>value = String.format("%.2f", curProduct.price);</code> and it works, 
    but when i want to<br>
    apply <code>value * ShoppingCartActivity.getProductQuantity(curProduct)</code>, it says 
    that <code>operator * cannot applied to java.lang.string</code>. How do i solve this 
    problem? How should i make the total price into 2 decimal?    </p>
  
  <pre><code>  item.productPrice = (TextView) convertView
                  .findViewById(R.id.textViewTotal);
  
    value = String.format("%.2f", curProduct.price);
  
      if (mShowPrice) {
          item.productPrice.setText("Total Price: " +  
    String.valueOf(curProduct.price * 
    ShoppingCartActivity.getProductQuantity(curProduct)));
      } else{
          item.productPrice.setText("RM" + String.valueOf(value));
      }
  </code></pre>