danielhyde
Civil/Environmental
Hi,
Can anyone tell me how to convert odd numbers in to even numbers in LISP?
I have a lisp routine which returns both even and odd numbers (0,1,2,3 up to 9) and I need to return and function that will round the figure down to the nearest even number, e.g.: 1 to 0, 3 to 2 etc.
Can anyone help?
Thanks in advance for any help
Dan
Can anyone tell me how to convert odd numbers in to even numbers in LISP?
I have a lisp routine which returns both even and odd numbers (0,1,2,3 up to 9) and I need to return and function that will round the figure down to the nearest even number, e.g.: 1 to 0, 3 to 2 etc.
Can anyone help?
Thanks in advance for any help
Dan