Jump to content

Simple setq not working...


Recommended Posts

Can you clue us in on how you're setting the value for 'e'?


The only way this would evaluate is if 'e' is = 0. Perhaps it's value is left over from another run?

Link to comment
Share on other sites

it ok, 1.0 made the trick. It is funny how lisp handles some things...I will get used to it.


Another one:


(defun roundnum	(a n /)
 (/ (float (fix (* a (expt 10 n)))) (expt 10 n))


(setq p (* (/ 1.0 12.0) e))
(princ (strcat "\mpla mpla mpla " (rtos (roundnum (p 2))) " m[2]"))


Throws "error: bad function:"

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...