Golang溢出int64
发布时间:2020-12-16 19:02:56 所属栏目:大数据 来源:网络整理
导读:我尝试使用此代码,但给了我一个错误:常量100000000000000000000000溢出int64 我该如何解决这个问题? // Initialise big numbers with small numberscount,one := big.NewInt(100000000000000000000000),big.NewInt(1) 例如: count,one := new(big.Int),bi
我尝试使用此代码,但给了我一个错误:常量100000000000000000000000溢出int64
我该如何解决这个问题? // Initialise big numbers with small numbers count,one := big.NewInt(100000000000000000000000),big.NewInt(1)
例如:
count,one := new(big.Int),big.NewInt(1) count.SetString("100000000000000000000000",10) 链接: (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |