[Top][All Lists]
[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: |
Eric Schulte |
Subject: |
Re: [O] [0][babel][R] Undesired conversion of integers to floats in R code block output |
Date: |
Sun, 19 Feb 2012 13:46:15 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (gnu/linux) |
>
> 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
> GNU Emacs 23.4.1 (i686-pc-linux-gnu, GTK+ Version 2.24.9) of
> 2012-02-01 on shirley.hoetzel.info
>
> On a 64-bit Ubuntu (11.10) machine:
> (string-to-number "123456789"): 123456789 (#o726746425, #x75bcd15)
> (string-to-number "987654321"): 987654321 (#o7267464261, #x3ade68b1)
> GNU Emacs 23.3.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.5) of
> 2011-08-14 on allspice, modified by Debian
>
Ah, nice debugging!
That must be the issue, as I'm working on a 64-bit machine.
Maybe one workaround could be to prefix the numbers with a letter in
R-land so that emacs interprets them as strings.
Cheers,
--
Eric Schulte
http://cs.unm.edu/~eschulte/
- [O] [0][babel][R] Undesired conversion of integers to floats in R code block output, Daniel Drake, 2012/02/16
- Re: [O] [0][babel][R] Undesired conversion of integers to floats in R code block output, Eric Schulte, 2012/02/18
- Re: [O] [0][babel][R] Undesired conversion of integers to floats in R code block output, Daniel Drake, 2012/02/19
- Re: [O] [0][babel][R] Undesired conversion of integers to floats in R code block output, Eric Schulte, 2012/02/19
- Re: [O] [0][babel][R] Undesired conversion of integers to floats in R code block output, Daniel Drake, 2012/02/19
- Re: [O] [0][babel][R] Undesired conversion of integers to floats in R code block output, Daniel Drake, 2012/02/19
- Re: [O] [0][babel][R] Undesired conversion of integers to floats in R code block output, Daniel Drake, 2012/02/19
- Re: [O] [0][babel][R] Undesired conversion of integers to floats in R code block output,
Eric Schulte <=
- Re: [O] [0][babel][R] Undesired conversion of integers to floats in R code block output, Daniel Drake, 2012/02/19
- Re: [O] [0][babel][R] Undesired conversion of integers to floats in R code block output, Achim Gratz, 2012/02/19
- Re: [O] [0][babel][R] Undesired conversion of integers to floats in R code block output, Achim Gratz, 2012/02/20