From: Achim Gratz <Stromeko@nexgo.de>
To: emacs-orgmode@gnu.org
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 [thread overview]
Message-ID: <87boot1k5m.fsf@Rainer.invalid> (raw)
In-Reply-To: 87haym1p83.fsf@Rainer.invalid
Achim Gratz <Stromeko@nexgo.de> 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
prev parent reply other threads:[~2012-02-20 17:37 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-16 19:07 [0][babel][R] Undesired conversion of integers to floats in R code block output Daniel Drake
2012-02-18 16:23 ` Eric Schulte
2012-02-19 7:02 ` Daniel Drake
2012-02-19 16:48 ` Eric Schulte
2012-02-19 17:40 ` Daniel Drake
2012-02-19 18:28 ` Daniel Drake
2012-02-19 19:27 ` Daniel Drake
2012-02-19 20:46 ` Eric Schulte
2012-02-19 21:19 ` Daniel Drake
2012-02-19 21:35 ` Achim Gratz
2012-02-20 17:36 ` Achim Gratz [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87boot1k5m.fsf@Rainer.invalid \
--to=stromeko@nexgo.de \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).