我有一个像这样的十六进制值
0000030000010000010000020000090000030000040000070000EF
如何将其存储在Scala中?
答案 0 :(得分:6)
试试BigInt。用法示例:
scala> val i = BigInt("0000030000010000010000020000090000030000040000070000EF", 16)
i: scala.math.BigInt = 18831305580304483748966372317094081267935079240643756687599
scala> i.toString(16)
res3: String = 30000010000010000020000090000030000040000070000ef