I’m trying to convert a double to a string without notation, and tried this:
f= Double.valueOf(c.getString(c.getColumnIndex(NotesDbAdapter.KEY_VALUE)));
NumberFormat formatter = new DecimalFormat("###.##############");
However, the value of 7^3^7 is returning as: 558546000000000000 opposed to 558545864083284007. As always help would be greatly appreciated.
You already had the value as a String. Why convert it to double at all?
You can’t get precision out of a double that it cannot hold.
558545864083284007has 18 decimal digits. Adoublehas 53 bits of binary precision, which is about 15.9 decimal digits. Google for ‘What every computer scientist should know about floating-point’.###.##############is not a suitable formatting mask for558545864083284007.