Function: calcFunc-ilog

calcFunc-ilog is an autoloaded and byte-compiled function defined in calc-math.el.gz.

Signature

(calcFunc-ilog X B)

Source Code

;; Defined in /usr/src/emacs/lisp/calc/calc-math.el.gz
(defun calcFunc-ilog (x b)
  (if (and (math-natnump x) (not (eq x 0))
	   (math-natnump b) (not (eq b 0)))
      (if (eq b 1)
	  (math-reject-arg x "*Logarithm base one")
	(if (< x b)
	    0
	  (cdr (math-integer-log x b))))
    (math-floor (calcFunc-log x b))))