小编Mad*_*Mad的帖子

Golang溢出int64

我尝试使用此代码,但给了我一个错误:常量100000000000000000000000溢出int64

我该如何解决这个问题?

// Initialise big numbers with small numbers
count, one := big.NewInt(100000000000000000000000), big.NewInt(1)
Run Code Online (Sandbox Code Playgroud)

biginteger go int64

7
推荐指数
1
解决办法
3073
查看次数

标签 统计

biginteger ×1

go ×1

int64 ×1