| Return type | Name and parameters |
|---|---|
Number
|
power(Integer exponent)
Power of an integer to an integer certain exponent. |
abs, and, asBoolean, asType, bitwiseNegate, compareTo, compareTo, div, div, downto, intdiv, intdiv, isCase, leftShift, minus, minus, mod, multiply, multiply, next, or, plus, plus, plus, power, previous, rightShift, rightShiftUnsigned, step, times, toBigDecimal, toBigInteger, toDouble, toFloat, toInteger, toLong, unaryMinus, unaryPlus, upto, xor
addShutdownHook, any, any, asBoolean, asType, collect, collect, collect, dump, each, eachMatch, eachMatch, eachWithIndex, every, every, find, find, findAll, findAll, findIndexOf, findIndexOf, findIndexValues, findIndexValues, findLastIndexOf, findLastIndexOf, findResult, findResult, getAt, getMetaClass, getMetaPropertyValues, getProperties, grep, grep, hasProperty, identity, inject, inject, inspect, invokeMethod, is, isCase, iterator, metaClass, print, print, printf, printf, println, println, println, putAt, respondsTo, respondsTo, setMetaClass, split, sprintf, sprintf, stream, tap, toString, use, use, use, with, with, withCloseable, withStream, withTraits
Power of an integer to an integer certain exponent. If the exponent is positive, convert to a BigInteger and call BigInteger.pow(int) method to maintain precision. Called by the '**' operator.
exponent - an Integer exponent