R - Unable to store large binary values -


i have large binary value:

   longbinary<-10110101110000111   

but value getting stored in longbinary 10110101110000112.

how can correct value without changes in end. tried using int64 package not available version 3.1.2 or 3.2.

is there way out ?

thanks

though i'm starting play around r, suspect when doing

longbinary<-10110101110000111 

you effective saving decimal number worth 10e+17. near maximum resolution of numeric() in r, , surely above integer(). think should save it's decimal value, , convert print in binary if necessary.

10110101110000111 binary = 93063 decimal = strtoi("10110101110000111", 2) 

the inverse (integer binary string) in r.utils: inttobin

inttobin(93063) gives string "10110101110000111":  > library(r.utils) > inttobin(93063) [1] "10110101110000111" 

Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -