Print big number in hexadecimal

前端 未结 1 760
感情败类
感情败类 2021-01-22 23:51

I\'m trying to convert big number to hexadecimal representation in R, but it fails, because it can\'t fit into 32-bit integer. Is there any way to overcome this limitation?

1条回答
  •  再見小時候
    2021-01-23 00:19

    Luckily I found the solution, but requires library gmp

    library(gmp)
    > as.character(as.bigz(0xffffffff+0x10000000),b=16)
    [1] "10fffffff"
    

    0 讨论(0)
提交回复
热议问题