Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Math.pow: How do you get away with rounding effect

807607Nov 10 2006 — edited Nov 10 2006
By default Math.pow returns the result after rounding, but if the precision is important , how should one disable the rounding effect.

i.e. if actual result is 0.03490, Math.pow returns it as 0.0 and this is a big problem if the factor is used in further calculation and high level precision is mandatory.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 8 2006
Added on Nov 10 2006
20 comments
808 views