chickadee » srfi-94 » integer-expt

integer-exptprocedure

Returns n1 raised to the power n2 if that result is an exact integer; otherwise signals an error.

(integer-expt 0 n2)

returns 1 for n2 equal to 0;

returns 0 for positive integer n2;

signals an error otherwise.