Search code examples
javabigdecimalexponent

Exponents in java


Are there any built in java methods where I can convert this "1.00E-7" to "0.0000001"? I am using BigDecimal as datatype by the way. I am really stuck in here. any help would be appreciated.


Solution

  •     BigDecimal bigD = new BigDecimal("1.00E-7"); 
        System.out.println(bigD.toPlainString());