Hi,
It worked for me. I'll lay money the problem is your value for Rad is not what you think it is.
Have a good one.
Shawndoe
Registered forum members do not see this ad.
I am not sure why this one plays up - If Rad = Radius - deduced previously from a selected circle. Why can't I set "MyValue" when the radius is at say 7.6?
Is it because I need a fudge factor or is there something else I am missing?
(if
(or
( = Rad 6.35)
( = Rad 7.6)
);or
(setq MyValue (* 2.0 rad))
);if
thanks

Hi,
It worked for me. I'll lay money the problem is your value for Rad is not what you think it is.
Have a good one.
Shawndoe
Yes but Rad for example when I look at value in the watch window is 7.6 yet it does not want to set "MyValue"
Perhaps its some other problem?
You could use equal instead of = as with = the two expressions must be identical to return true.
With equal you can specify a fuzz, say 0.0001 or something similar.
![]()
Lee Mac Programming
With Mathematics there is the possibility of perfect rigour, so why settle for less?
Just another Swamper


Probably a silly suggestion, but you might also want to consider your units. Even if a number determined via LISP has several places after the decimal point, viewing that number will be subject to the units of your drawing, and if you don't allow any more than, say, 1 digits after the decimal point to be displayed, any number that is 7.6whatever will display as 7.6.
~* And, in the end, the love you take *~
~* Is equal to the love you make *~
- The Beatles -
GrPlayground / Text Find/Replace / Batch Engine / Tower Defense
Timothy Spangler
--theswamp--
Lee Mac Programming
With Mathematics there is the possibility of perfect rigour, so why settle for less?
Just another Swamper
I've heard that.......![]()
Timothy Spangler
--theswamp--
thanks guys the fuzz factor seemed to do the trick using 'equal'
Registered forum members do not see this ad.
If you need differing fuzz factors you can use something like this:
-DavidCode:Command: (setq r 2.6) 2.6 Command: (<= 2.599 r 2.6000000000001) T
R12 (Dos) - A2K
Bookmarks