According to mathematics exponent is a number indicates how many times to multiply the base number. When it comes to C++ exponents every programmer should know two std functions, std::pow and std::exp . To use these methods you should include cmath.