As we know, elisp supports number in different bases, e.g. #20r1j equals to 39 in base-10. I want to display #20r1j as #20r1j. But (format "%d" #20r1j) gives me 39. How to keep the number in its original base?
As we know, elisp supports number in different bases, e.g. #20r1j equals to 39
Share
As a format string, you are quite limited in the bases you can display:
You can use the calc library to manage this for you, however:
As with the read syntax you’re using, allowed values of
calc-number-radixrun from 2 to 36.