Tuesday, February 28, 2012

Re: [android-developers] How can I convert a double to a string without notation and with a high amount of accuracy in Java?

On Feb 28, 2012, at 3:25 AM, Jeresam515 wrote:
> However, the value of 7^3^7 is returning as: 558546000000000000
> opposed to 558545864083284007. As always help would be greatly
> appreciated.

Firstly I would make sure c.getString(….) returns what you're expecting. Then.. Unfortunately float and double should never be used to store precise values. Not to forget your value is pretty close to what long can handle and most definitely will cause some "trouble" when trying to store it into floating point format;



You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment