uupppsss! I see your point, yes! I will correct it inmediately
Thank you very much Henrique
However, I'm still confused, because if I use "(setq newptx (+ ptx 1.6))" it doesn't exit the loop when ptx=1.6, in fact, any number under 1.4 (ex: 1.2, 1.0, 0. works, but over 1.4 (ex: 1.6, 1.8, 2.0) doesn't work ?
These while loops always confuse me, here's another case:
- (setq ptx 0.0) (setq pty 3.0) (setq ptz 4.0) (setq newptx (+ ptx 1.4)) (while (< ptx newptx) (setq mylist (append mylist (list (list ptx pty ptz)))) (setq ptx (+ ptx 0.2)) ) ;_ end of while
with "(+ ptx 1.4)" it exits the loop at 1.4, but with "(+ ptx 2.0)" it exits at 2.2, why??? |