Message 1 of 8
Subtract Throws Error

Not applicable
12-11-2018
10:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to subtract 2 numbers. I have made sure the numbers that I am trying to subtract are valid numbers, and they are. I have even just manually typed in numbers, but whenever the operator is a "-", the script doesn't complete.
(setq w (- 10 2) ) (princ w)
I have changed the "-" to addition, division, and multiplication and they all work fine, but if I do nothing but only change the "+" or whatever operator it is back to a "-", the script fails.
Any idea what might be causing this?