I want to call the square root of 9 from Math:
I tried the following, but it does not work:
(defun main
(format t "~a~%"
(JAVA:JCALL (JAVA:JMETHOD "java.lang.Math" "sqrt" 9.0))))
(main)
Can someone provide a working “.lisp” file which calls the java sqrt function from 9 and prints the result 3 for the abcl implementation ?
You must log in or register to comment.