Ii would like to know how to add several hexadecimal numbers in lisp without first converting them to another base. How could this be done?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In GNU Emacs, hexadecimal numbers are tagged with #x.
I don’t know offhand what Common LISP or Scheme use.
If what you have is something like
and you want to add them up, you’ll have to take an edit pass over them to prepend the #x tags before you wrap them in (+ …).