java and the precission please HELP me!!!

J

juavizga

I need work wiht 30 decimals in a double, but when I try to store :

44*279^7+97*279^5+104*279^4+99*279^3+110*279^2+97*279+77

when a^b is Math.pow(a,b). Exemple 2^2 is 2*2=4

well if I execute this in the calc of windows I get 5.790211750705701434e18
-----
but when I execute in my program whit java the result that I get is:
5.7902117507057009e18
----
the result is not the same in java the result is rounded and I lose
precission can anybody or java guru help me, I need the wole precission.


THANKS
 
A

Andrew Thompson

I need work wiht 30 decimals...

I see your also trying to work with (at least)
2 news groups.

Please keep it to c.l.j.help until you discover
why mutli-posting is so counter-productive.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top