String loanamount = edtamount.getText().toString();
double doubleloanamount = Double.parseDouble(loanamount);
String strloanamount = Double.toString(doubleloanamount);
Log.v("doubleloanamout", strloanamount);
String years = edtyears.getText().toString();
double doubleyears = Double.parseDouble(years) * 12;
String strpaymentdoubleyears = Double.toString(doubleyears);
Log.v("doubleyears", strpaymentdoubleyears);
double inrate = doubleloanamount * 11 / 100;
double monthlyrate = inrate / 12;
double roundmonthlyrate = Math.round(monthlyrate);
String inratefordemo = Double.toString(roundmonthlyrate);
double Payment = (doubleloanamount
* Math.pow(( roundmonthlyrate) + 1, (doubleyears)) * roundmonthlyrate)
/ (Math.pow( roundmonthlyrate + 1, (doubleyears)) - 1);
double roundpayment = Math.round(Payment);
String strpayment = Double.toString(roundpayment);
Log.v("payment", strpayment);
edtemimonth.setText(strpayment);
上記のコードを使用して EMI を計算していますが、値が 0 と表示されます。