RosettaCodeData/Task/Binary-digits/Common-Lisp/binary-digits.lisp

6 lines
43 B
Common Lisp

(format t "~b" 5)
; or
(write 5 :base 2)