I’m using http://www.solve-et-coagula.com/As3Lisp.html to run a basic factorial function.
It’s outputting the results in scientific notation, but I’d like to see the full “expanded” number.
(defun factorial (n)
(cond ((= n 0) 1)
(t (* n (factorial (- n 1))))))
then
(factorial 100)
9.33262154439441e+157
I’ve tried various format commands, (format t "~D" (factorial 100)) looks like the winner but it doesn’t work. Also tried setting (setq *READ-DEFAULT-FLOAT-FORMAT* 'double-float) but still doesn’t work.
Is the problem with my commands, or is it the environment?
Turns out a different environment will do the trick.
I used Gnu Common Lisp (http://www.cs.utexas.edu/~novak/gclwin.html) and the answer is returning as expected.