I'd like to convert a number to a binary string, e.g. (to-binary 11) -> "1011".
I already found a method to convert to hex and oct:
(format "%x" 11) -> "B"
(format "%o" 11) -> "13"
but there is apparently no format string for binary ("%b" gives an error).
The conversion is simple the other way round: (string-to-number "1011" 2) -> 11
Is there any other library function to do that?