Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > java and the precission please HELP me!!!

Reply
Thread Tools

java and the precission please HELP me!!!

 
 
juavizga
Guest
Posts: n/a
 
      04-10-2004
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


 
Reply With Quote
 
 
 
 
Andrew Thompson
Guest
Posts: n/a
 
      04-10-2004
On Sat, 10 Apr 2004 21:35:31 +0200, juavizga wrote:

> 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.

--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
real numbers with infinity precission Hans Larsen Python 1 11-19-2009 10:39 AM
Please please please help this guy with his open source java app casioculture@gmail.com Java 4 05-05-2005 08:24 AM
Computer problems please please please help Nick Computer Support 0 06-04-2004 08:49 PM
HELP! HELP! PLEASE, PLEASE, PLEASE tpg comcntr Computer Support 11 02-15-2004 06:22 PM
please help... ...me learn C++ please please please :) KK C++ 2 10-14-2003 02:08 PM



Advertisments