public static String pow ( String base , String exponent ) { try { BigDecimal bdBase = new BigDecimal ( base ) ; BigDecimal bdExp = new BigDecimal ( exponent ) ; return Math . pow ( bdBase . doubleValue ( ) , bdExp . doubleValue ( ) ) + "" ; } catch ( Exception ex ) { return null ; } }
Returns the value of the first argument raised to the power of the second argument .