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: Mon, 20 Feb 2012 18:36:53 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (gnu/linux)

Achim Gratz <address@hidden> 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




reply via email to

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