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: Sun, 19 Feb 2012 22:35:08 +0100 Message-ID: <87haym1p83.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> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:43361) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RzEPn-0006EG-TT for emacs-orgmode@gnu.org; Sun, 19 Feb 2012 16:35:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RzEPm-0006Dn-53 for emacs-orgmode@gnu.org; Sun, 19 Feb 2012 16:35:27 -0500 Received: from plane.gmane.org ([80.91.229.3]:39998) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RzEPl-0006Dd-Ou for emacs-orgmode@gnu.org; Sun, 19 Feb 2012 16:35:26 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1RzEPh-0002lO-DL for emacs-orgmode@gnu.org; Sun, 19 Feb 2012 22:35:21 +0100 Received: from pd9eb5411.dip.t-dialin.net ([217.235.84.17]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 19 Feb 2012 22:35:21 +0100 Received: from Stromeko by pd9eb5411.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 19 Feb 2012 22:35:21 +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 Eric Schulte writes: >> >> A further followup, at the risk of descending into minutia. The >> culprit seems to be the emacs function string-to-number. >> >> 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. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Wavetables for the Waldorf Blofeld: http://Synth.Stromeko.net/Downloads.html#BlofeldUserWavetables