title: Code for calculating the percentage not working
body: <p>I don't know how to get the result from the <strong>price</strong> and <strong>percent</strong> to show the price after discount!!</p>
  
  <pre><code>        // write the percentage
      final EditText editPrice = (EditText) findViewById(R.id.editPrice);
      // write the price
      final EditText ePercent = (EditText) findViewById(R.id.ePercent);
      // Hopefully to get the result
      final TextView result = (TextView) findViewById(R.id.viewResult);
  
      Button buttonConvert = (Button) findViewById(R.id.buttonConvert);
      buttonConvert.setOnClickListener(new OnClickListener() {
  
          @Override
          public void onClick(View v) {
              try {
                  double price = Double.valueOf(editPrice.getText()
                          .toString());
                  // percent
                  double per = (price / 100.0f) * ePercent;;
  
                  result.setText(String.valueOf(per));
  </code></pre>
  
  <p>Any Help!
  Thanks!</p>