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: Johan Bockgård
Subject: Re: converting numbers to strings in arbitrary base (up to 36)
Date: Tue, 15 Mar 2011 21:47:28 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Mirko <address@hidden> writes:

> But is there a way to write an integer in arbitrary base (again, 2-36)
> to a file?
>
> I looked at string-to-number, format, and calc

  (require 'calc-bin)
  (let ((calc-number-radix 36))
    (math-format-radix 71))

    => "1Z"


reply via email to

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