power « bigdecimal « Java Data Type Q&A

Home
Java Data Type Q&A
1.bigdecimal
2.biginteger
3.bit
4.Boolean
5.byte
6.Calendar
7.cast
8.character
9.Date Time
10.Date Time Format
11.decimal
12.Development
13.double
14.enum
15.float
16.hexadecimal
17.Integer
18.Number
19.Number Format
20.primitive
21.SimpleDateFormat
22.string
23.StringBuffer
24.StringBuilder
25.StringTokenizer
26.substring
27.TimeZone
Java Data Type Q&A » bigdecimal » power 

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

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.