From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?Johan_Bockg=C3=A5rd?= Newsgroups: gmane.emacs.help Subject: Re: converting numbers to strings in arbitrary base (up to 36) Date: Tue, 15 Mar 2011 21:47:28 +0100 Organization: Aioe.org NNTP Server Message-ID: <87r5a8p0v3.fsf@gnu.org> References: <56262053-76f2-494e-b7ed-63a9105229ee@glegroupsg2000goo.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1300300617 12266 80.91.229.12 (16 Mar 2011 18:36:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 16 Mar 2011 18:36:57 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 16 19:36:49 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PzvaS-0004IG-Kz for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Mar 2011 19:36:48 +0100 Original-Received: from localhost ([127.0.0.1]:51581 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PzvaR-0001IC-Sr for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Mar 2011 14:36:48 -0400 Original-Path: usenet.stanford.edu!news.glorb.com!news2.glorb.com!feeder.erje.net!news2.arglkargh.de!news.mixmin.net!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 12 Original-NNTP-Posting-Host: 9Qv3Z7H2D013hbuym6aTuw.user.speranza.aioe.org Original-X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Notice: Filtered by postfilter v. 0.8.2 Cancel-Lock: sha1:ITq5cnqyDPdBzP8538Qo6YlhFPg= Mail-Copies-To: never Original-Xref: usenet.stanford.edu gnu.emacs.help:186008 X-Mailman-Approved-At: Wed, 16 Mar 2011 14:35:30 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:80180 Archived-At: Mirko 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"