power « bigdecimal « Java Data Type Q&A

1. How to do a fractional power on BigDecimal in Java?    stackoverflow.com

In my little project I need to do something like Math.pow(7777.66, 5555.44) only with VERY big numbers. I came across a few solutions:

  • Use double - but the numbers are too big
  • Use ...

2. Rasing BigDecimal to a power    coderanch.com

Currently I am working with J2SE 1.4 and I need to raise a BigDecimal to a power. There is no method in the class BigDecimal that let me do that, and the number is to big too fit in a double (furthermore double is not precise enough). Any idea of what I should do? [ June 18, 2005: Message edited by: ...