You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
24994434550311665182 is both bigger that the biggest positive signed int64 and bigger than the biggest unsigned uint64 , so your expectation seems wrong.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
https://play.golang.org/p/AmEckBDqrFo
What did you expect to see?
I expect to see that "24994434550311665182" string casts to valid *big.Int.
With appropriate
true
results while calling.IsInt64()
and.IsUint64()
What did you see instead?
Instead, I see that "24994434550311665182" cast string is invalid *big.Int instance.
When I try to retrieve
.Int64()
I see "6547690476602113566".The text was updated successfully, but these errors were encountered: