dp=Double.parseDouble(txtDownPayment.getText().toString());
NumberFormat nf = NumberFormat.getCurrencyInstance();
// here i need to convert decimal to double or any bigger type.
String temp = nf.format(Double.parseDouble(txtDownPayment.getText().toString()));
txtDownPayment.setText(temp);
dp=Double.parseDouble(txtDownPayment.getText().toString()); NumberFormat nf = NumberFormat.getCurrencyInstance(); // here i need to convert decimal to double
Share
1 Answer