We can represent the number 12
as 2r001100
in clojure.
Is there a built-in function to print 2r001100
when given the number 12?
see cl-format
user=> (require '[clojure.pprint :refer (cl-format)])
nil
user=> (cl-format nil "2r~6,'0',B" 12)
"2r001100"