Advertisement
Guest User

Untitled

a guest
Mar 27th, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. second_amount = Double.parseDouble(second.getText().toString());
  2. first_amount = Double.parseDouble(first.getText().toString());
  3. result = first_amount * second_amount;
  4. second.setText("" + df.format(result));
  5.  
  6. second_amount = Double.parseDouble();
  7. bdf = new BigDecimal(second.getText().toString());
  8. //first_amount = Double.parseDouble(first.getText().toString());
  9. bds = new BigDecimal(second.getText().toString());
  10. BigDecimal bdr = bdf.multiply(bds);
  11. //result = first_amount * second_amount;
  12. second.setText("" + bdr);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement