Function: expt

expt is a function defined in floatfns.c.

Signature

(expt ARG1 ARG2)

Documentation

Return the exponential ARG1 ** ARG2.

Other relevant functions are documented in the number group.

View in manual

Probably introduced at or before Emacs version 22.1.

Shortdoc

;; number
(expt 2 16)
    => 65536

Source Code

// Defined in /usr/src/emacs/src/floatfns.c
{
  CHECK_NUMBER (arg1);
  CHECK_NUMBER (arg2);

  /* Common Lisp spec: don't promote if both are integers, and if the
     result is not fractional.  */
  if (INTEGERP (arg1) && !NILP (Fnatnump (arg2)))
    return expt_integer (arg1, arg2);

  return make_float (pow (XFLOATINT (arg1), XFLOATINT (arg2)));
}