[Rd] integer constants given by hexadecimal notation (PR#9648)

murdoch at stats.uwo.ca murdoch at stats.uwo.ca
Tue May 1 13:30:27 CEST 2007


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 version 2.5.0 (2007-04-23)
> i386-pc-mingw32
> 
> locale:
> LC_COLLATE=German_Germany.1252;LC_CTYPE=German_Germany.1252;LC_MONETARY=German_Germany.1252;LC_NUMERIC=C;LC_TIME=German_Germany.1252
> 
> attached base packages:
> [1] "stats"     "graphics"  "grDevices" "utils"     "datasets"  "methods"
> [7] "base"
> 
> 
> Stephan
> 
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



More information about the R-devel mailing list