Deactivated Account
- Forum posts: 2
Nov 14, 2011, 2:15:20 PM via Website
Nov 14, 2011 2:15:20 PM via Website
Here is a snip of the code with problems.
protected void showResult(Editable first, Editable second) {
float num1 = Float.parseFloat(first.toString());
float num2 = Float.parseFloat(first.toString());
float result = num1 * num2;
float result2 = (float) (result / 11.76470588235294);
float result3 = result / 50;
float result4 = (float) (result / 28.57142857142857);
float result5 = result / 50;
Result.setText(String.valueOf(result)+ " in2. " + String.valueOf(result2)+ " inches of x2. " + String.valueOf(result3)+ " inches of x3. " + String.valueOf(result4)+ " inches of x4. " + String.valueOf(result5)+ " inches of x5. ");
}
protected void showResult(Editable first, Editable second) {
float num1 = Float.parseFloat(first.toString());
float num2 = Float.parseFloat(first.toString());
float result = num1 * num2;
float result2 = (float) (result / 11.76470588235294);
float result3 = result / 50;
float result4 = (float) (result / 28.57142857142857);
float result5 = result / 50;
Result.setText(String.valueOf(result)+ " in2. " + String.valueOf(result2)+ " inches of x2. " + String.valueOf(result3)+ " inches of x3. " + String.valueOf(result4)+ " inches of x4. " + String.valueOf(result5)+ " inches of x5. ");
}
Recommended editorial content
With your consent, external content is loaded here.
By clicking on the button above, you agree that external content may be displayed to you. Personal data may be transmitted to third-party providers in the process. You can find more information about this in our Privacy Policy.