From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: Re: [0][babel][R] Undesired conversion of integers to floats in R code block output Date: Mon, 20 Feb 2012 18:36:53 +0100 Message-ID: <87boot1k5m.fsf@Rainer.invalid> References: <4F3D53D6.40407@gmail.com> <87boowrtyv.fsf@gmx.com> <4F409E93.5010800@gmail.com> <878vjyg466.fsf@gmx.com> <4F413412.5050108@gmail.com> <4F413F30.60302@gmail.com> <4F414D3D.5010602@gmail.com> <87ehtqeelk.fsf@gmx.com> <87haym1p83.fsf@Rainer.invalid> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:55016) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RzXAo-0007Ei-SD for emacs-orgmode@gnu.org; Mon, 20 Feb 2012 12:37:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RzXAi-0001LX-Sy for emacs-orgmode@gnu.org; Mon, 20 Feb 2012 12:37:14 -0500 Received: from plane.gmane.org ([80.91.229.3]:42730) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RzXAi-0001LL-N8 for emacs-orgmode@gnu.org; Mon, 20 Feb 2012 12:37:08 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1RzXAg-00060M-3L for emacs-orgmode@gnu.org; Mon, 20 Feb 2012 18:37:06 +0100 Received: from pd9eb2528.dip.t-dialin.net ([217.235.37.40]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 20 Feb 2012 18:37:06 +0100 Received: from Stromeko by pd9eb2528.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 20 Feb 2012 18:37:06 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Achim Gratz writes: >>> On my 32-bit Arch machine: >>> (string-to-number "123456789"): 123456789 (#o726746425, #x75bcd15) >>> (string-to-number "987654321"): 987654321.0 > > Since that latter number is not representable as an integer in Emacs (it > loses 4 bit due to the way Lisp represents these things), it takes the > next best thing (FP in that case). Since you are on Arch, I believe > there is a way to compile Emacs to use "large integers" even on 32bit > systems - it may have other problems, but should solve this. I've just compiled Emacs again using "--with-wide-int" as an additional (or sole) configure option and get: (string-to-number "987654321"): 987654321 (#o7267464261, #x3ade68b1) So, no need to upgrade the whole system to 64bit if that was the only problem... :-) Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ SD adaptations for Waldorf Q V3.00R3 and Q+ V3.54R2: http://Synth.Stromeko.net/Downloads.html#WaldorfSDada