Solidity – What Does ** Mean?

solidity

I noticed this code in open zepplins contract:

  uint256 public constant INITIAL_SUPPLY = 10000 * (10 ** uint256(decimals));

I've never seen the double ** before. What does it mean?

Best Answer

from the solidity documentation :

Arithmetic operators: +, -, unary -, unary +, *, /, % (remainder), ** (exponentiation)


so : a**b is a to the power of b (i.e: a*a*a*...*a b times)

Related Topic