For lack of a better name, we'll call it that. For now.
This document outlines the procedure in which work makes it from start to finish, merging into master
. We'll be looking at it from a pretty high level and skimming over a lot as we go.
(defun dec-to-bin (dec) | |
(interactive "nDecimal number to convert: ") | |
(setq debug-on-error t) | |
(let ((bin-string "") | |
(current-dec dec)) | |
(while (/= 0 current-dec) | |
(setq bin-string (concat (number-to-string (% current-dec 2)) bin-string)) | |
(setq current-dec (truncate (/ current-dec 2)))) | |
(message "%d in binary is %s" dec bin-string))) |