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: Sun, 19 Feb 2012 22:35:08 +0100 [thread overview]
Message-ID: <87haym1p83.fsf@Rainer.invalid> (raw)
In-Reply-To: 87ehtqeelk.fsf@gmx.com
Eric Schulte <eric.schulte@gmx.com> 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
next prev parent reply other threads:[~2012-02-19 21:35 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 [this message]
2012-02-20 17:36 ` Achim Gratz
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=87haym1p83.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).