emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] [0][babel][R] Undesired conversion of integers to floats in R co


From: Achim Gratz
Subject: Re: [O] [0][babel][R] Undesired conversion of integers to floats in R code block output
Date: Sun, 19 Feb 2012 22:35:08 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (gnu/linux)

Eric Schulte <address@hidden> 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




reply via email to

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