mirror of
https://github.com/open-goal/jak-project
synced 2026-05-31 09:22:14 -04:00
14 lines
254 B
Common Lisp
14 lines
254 B
Common Lisp
(define format _format)
|
|
|
|
(defun pow-test ((base float) (exponent integer))
|
|
(let ((result base))
|
|
(while (> exponent 1)
|
|
(*! result base)
|
|
(-! exponent 1)
|
|
)
|
|
result
|
|
)
|
|
)
|
|
|
|
(format #t "~,,0f~%" (pow-test 2.0 8))
|
|
0 |