Displaying 20 results from an estimated 10000 matches similar to: "integer constants given by hexadecimal notation"
2007 May 01
2
integer constants given by hexadecimal notation (PR#9648)
On 01/05/2007 7:21 AM, Stephan wrote:
> Hi,
>
>> 0x10L
> returns: int 0
>
> I would expect: int 16?
> This happens with all integer constants given by hexadecimal notation.
> It's a bug?
Certainly looks like one; I've cc'd this to the bug list (but won't be
able to look into fixing it).
Duncan Murdoch
>
>
>> sessionInfo()
> R
2016 Dec 20
2
Very small numbers in hexadecimal notation parsed as zero
Hi all,
I have noticed incorrect parsing of very small hexadecimal numbers
like "0x1.00000000d0000p-987". Such a hexadecimal representation can
can be produced by sprintf() using the %a flag. The return value is
incorrectly reported as 0 when coercing these numbers to double using
as.double()/as.numeric(), as illustrated in the three examples below:
2016 Dec 21
0
Very small numbers in hexadecimal notation parsed as zero
>>>>> Florent Angly <florent.angly at gmail.com>
>>>>> on Tue, 20 Dec 2016 13:26:36 +0100 writes:
> Hi all,
> I have noticed incorrect parsing of very small hexadecimal numbers
> like "0x1.00000000d0000p-987". Such a hexadecimal representation can
> can be produced by sprintf() using the %a flag. The return value is
2008 Apr 30
1
+ and - in RODBC : no longer considered factors
I have a large Sweave report that reads data from a database file. Some of
the columns are 1-character strings containing only +, - or NA. An example
for such a table is shown below, and can be downloaded for easier testing
from
http://www.menne-biomed.de/uni/test.zip
(For security reasons, the file is zipped)
table test
hp hp1
+ a
- +
library(RODBC)
channel =
2007 May 14
1
optim bug (PR#9684)
Full_Name: Christina Merz
Version: R version 2.5.0 (2007-04-23)
OS: mingw32
Submission from: (NULL) (213.70.209.132)
R> version
_
platform i386-pc-mingw32
arch i386
os mingw32
system i386, mingw32
status
2006 Oct 27
2
all.names() and all.vars(): sorting order of functions' return vector
Dear list-subscriber,
in the process of writing a general code snippet to extract coefficients
in an expression (in the example below: 0.5 and -0.7), I stumbled over
the following peculiar (at least peculiar to me:-) ) sorting behaviour
of the function all.names():
> expr1 <- expression(x3 = 0.5 * x1 - 0.7 * x2)
> all.names(expr1)
[1] "-" "*" "x1"
2013 Apr 05
1
mixed formatting of integer and numeric (e. g., by summary.default())
Hello, eveRybody,
I've been trying to find the origin for the following
formatting-"inconsistency":
E. g., look at the number of digits in summary.defaults()'s output when
NAs occur: in my example below the number of NA's is displayed as an
integer, the rest as numeric (floating point numbers):
> summary.default( c( 1:2, NA))
Min. 1st Qu. Median Mean 3rd Qu.
2007 Jul 15
3
[LLVMdev] Floating point constants (bug?)
>From the language guide:
"The one non-intuitive notation for constants is the optional
hexadecimal form of floating point constants. For example, the form
'double 0x432ff973cafa8000' is equivalent to (but harder to read than)
'double 4.5e+15'. The only time hexadecimal floating point constants
are required (and the only time that they are generated by the
disassembler) is
2007 Jun 15
2
Problem with workspace loading after languageR use
Hello R,
To analyze multi-level data, I started learning and using lmer. So far
so wonderful. I then found some useful functions in package languageR.
But then the following problem ocurred: Whenever I load and use the
languageR package, then save the workspace - or quit R with saving the
workspace - I am unable to reload that workspace in a later session.
That is, R doesn't start at all
2011 Jul 24
4
inline/Rcpp: Problem with space in path under Windows
I am trying to run inline/Rcpp under Windows 64. The RTools are installed on
a spaceless path D:\rtools.
Inlining pure c-code works perfectly. When I try the sample code for cpp in
the cxx Documentation, I get:
x86_64-w64-mingw32-g++.exe: C:/Program: No such file or directory
The path to the compiler is correct. Obviously there is some problem with
the space in C:/Program (Files).
Any ideas
2006 Nov 03
1
Formal methods are not loaded from NAMESPACE in reloadedworkspace image
Dear R-Devel subscriber,
as a follow up to my yesterday's email: I tested an analogous example
with the S4-package "flexclust" by executing the following code:
library(flexclust)
example(cclust)
cl
After saving the work space and starting a new R process with the
restored work space, the same behaviour (i.e., the methods pertinent to
"flexclust" are not used, even after
2008 Jul 14
2
Backslash in sub pattern?
Dear guRus,
I am trying to replace "~" by "$\sim$" for TeX. However, I can't get the
backslash to work. I would like to turn "DV~IV" into "DV$\sim$IV".
sub("~","$\sim$","DV~IV") => "DV$sim$IV"
sub("~","$\\sim$","DV~IV") => "DV$sim$IV"
2009 Oct 13
2
Sweave output encoding in R-2.10.0beta on Windows (Rgui <-> Rterm)
Dear developers,
I have come across a (somewhat strange) change in the encoding of Sweave
output from R-2.9.2pat to R-2.10.0beta (apparently specific to Rgui) on
Windows installations. Of course, the NEWS file contains quite a few
changes concerning encoding, but I was not able to locate an entry which
explains the observed behaviour. I am not very familiar with
encodings/locales/codepages,
2009 Nov 16
3
R crash with intToUtf8 on huge vectors (PR#14068)
Full_Name: George Russell
Version: 2.10.0
OS: Windows XP Professional Version 2002 Service Pack 2
Submission from: (NULL) (217.111.3.131)
Typing the following command into R --vanilla causes R to crash:
k <- intToUtf8(rep(1e3,1e7))
This is the output of sessionInfo():
R version 2.10.0 (2009-10-26)
i386-pc-mingw32
locale:
[1] LC_COLLATE=German_Germany.1252 LC_CTYPE=German_Germany.1252
2009 Dec 29
1
problem reading from serial connection since 2.10.0
Dear list,
I have a balance connected to the serial port of a windows machine ("COM1") and I read the text
output of the balance with
scan("COM1", what="character", sep="\n", n=1)
after calling the previous line I press the print key on the balance which triggers sending one line
of text to the serial connection and with R 2.9.2 I get something like
Read
2006 Nov 03
2
WG: Formal methods are not loaded from NAMESPACE inreloadedworkspace image
Sorry, to bother the list one more time: but the following worked at
least for 'urca':
in NAMESPACE I now included explicitly:
import(methods)
a fix of the 'urca'-package will be uploaded to CRAN on the weekend.
Fritz, will this work for ypur package 'flexclust' too? I have in my
DESCRIPTION imports: methods and in flexclust it is in depends: methods.
However, both
2010 Jun 02
0
[LLVMdev] Generating Floating point constants
On Wed, Jun 2, 2010 at 2:59 AM, Stéphane Letz <letz at free.fr> wrote:
> Hi,
>
> We need to generate "Floating point constants" in our code. In http://llvm.org/docs/LangRef.html it is explained that FP has to follow special encoding rules to be handled by LLVM later one (hexadecimal coding...)
>
> Is there any code available in LLVM to handle this kind of
2009 Feb 11
1
[LLVMdev] Suggested change to docs re: double/float constant syntax.
It appears to me based on my experiments with llvm-as that literal
floating-point constants may be specified in the 64-bit IEEE
hexadecimal format, but not in the 32-bit format. For instance, this
file:
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-
i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-
f80:128:128"
target triple =
2009 Jan 30
1
Methods not loaded in R-Devel vs 2.8.1
Dear list-member,
I am currently developing a package with S4 classes. The NAMESPACE and DESCRIPTION is printed below. Within this package I have set a method "residuals" for two classes. In version 2.8.1 these two are reported whereas in R-Devel (2009-01-28 r47766). What have I missed? What has changed and how can I rectify the issue? Your help and pointers are welcome.
For 2.8.1:
2008 Jun 13
4
Sweave: looping over mixed R/LaTeX code
Dear guRus,
I would like to loop over a medium amount of Sweave code, including both R and LaTeX chunks. Is there any way to do so? As an illustration, can I create a .tex file like this using a loop within a .Rnw file, where the "1,2,3" comes from some iteration variable in R?
################################################
\documentclass{article}
\usepackage{Sweave}
\begin{document}