Velocity Reviews - Computer Hardware Reviews

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

Thread Tools

java and the precission please HELP me!!!

Posts: n/a
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:
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.


Reply With Quote
Andrew Thompson
Posts: n/a
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 until you discover
why mutli-posting is so counter-productive.

Andrew Thompson Open-source software suite Web & IT Help Science & Technology
Reply With Quote

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 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... learn C++ please please please :) KK C++ 2 10-14-2003 02:08 PM