Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 24th, 2012  |  syntax: None  |  size: 0.40 KB  |  hits: 8  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. How can i convert decimal to double for big calculation in Android
  2. dp=Double.parseDouble(txtDownPayment.getText().toString());
  3.  
  4. NumberFormat nf = NumberFormat.getCurrencyInstance();
  5.  
  6. // here i need to convert decimal to double or any bigger type.
  7.  
  8. String temp = nf.format(Double.parseDouble(txtDownPayment.getText().toString()));
  9. txtDownPayment.setText(temp);
  10.        
  11. double doubleValue = new Double(intValue);