fork | group |
---|---|
Frontier |
Stop and Arithmetic Operations |
Index 1 is top of the stack. See PUSH.
a
: integer base.exponent
: integer exponent.
a ** exponent
: integer result of the exponential operation modulo 2256.
* | Input | Output | * | * | Input | Output |
---|---|---|---|---|---|---|
1 |
10 |
100 |
* | 1 |
2 |
4 |
2 |
2 |
* | 2 |
2 |
The state changes done by the current context are reverted in those cases:
- Not enough gas.
- Not enough values on the stack.