error: bad argument type for compare: "27.89728091" 180.0 ???? HELP!!!

error: bad argument type for compare: "27.89728091" 180.0 ???? HELP!!!

DC-MWA
Collaborator Collaborator
227 Views
2 Replies
Message 1 of 3

error: bad argument type for compare: "27.89728091" 180.0 ???? HELP!!!

DC-MWA
Collaborator
Collaborator

I am working on a little project. I keep getting this error. I know I'm missing something simple.

See attached lisp.

0 Likes
Accepted solutions (1)
228 Views
2 Replies
Replies (2)
Message 2 of 3

Satoews
Advocate
Advocate
Accepted solution

I can't get to my computer to open your lisp at the moment but I am going to take a shot in the dark here by looking at the error message. The "27.89728091" looks like a string not a real number judging by the "" try converting where it is getting that string using (atof "27.89728091") should return something that the 180.0 should be able to compare with.

Shawn T
0 Likes
Message 3 of 3

DC-MWA
Collaborator
Collaborator

That's it. Thank you!

0 Likes