dlanorh Posted June 27, 2020 Posted June 27, 2020 (edited) 56 minutes ago, Mike55 said: How do I change 12.0 to 12 (fix x) or (setq x (fix x)) where x is the variable containing the real number. BE AWARE, THIS DOES NOT ROUND TO THE NEAREST INTEGER, if x = 12.9 you will get 12 Edited June 27, 2020 by dlanorh Quote
Lee Mac Posted June 27, 2020 Posted June 27, 2020 (atoi (rtos 12.0 2 0)) This will ensure the real is rounded to the nearest integer. Quote
Recommended Posts
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.