help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: converting numbers to strings in arbitrary base (up to 36)


From: Stefan Monnier
Subject: Re: converting numbers to strings in arbitrary base (up to 36)
Date: Tue, 15 Mar 2011 15:39:58 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

> I have a file where I want to keep a counter (in base 36).

string-to-number takes a `base' argument, but that only works one way
(when reading) and the base can only be up to 16, bot up to 36.
So I think you'll have to do the conversion by hand (with the kind of
code you'd typically see in introductory programming books).


        Stefan


reply via email to

[Prev in Thread] Current Thread [Next in Thread]