Function: math-compute-max-digits
math-compute-max-digits is an autoloaded and byte-compiled function
defined in calc-bin.el.gz.
Signature
(math-compute-max-digits W R)
Source Code
;; Defined in /usr/src/emacs/lisp/calc/calc-bin.el.gz
(defun math-compute-max-digits (w r)
(let* ((pair (+ (* r 100000) w))
(res (assq pair math-max-digits-cache)))
(if res
(cdr res)
(let* ((calc-command-flags nil)
(digs (math-ceiling (math-div w (math-real-log2 r)))))
(setq math-max-digits-cache (cons (cons pair digs)
math-max-digits-cache))
digs))))