How do one convert a big int to a string (or integer) in Golang?
bigint := big.NewInt(123) //This is what I have
bigstr = "123" //This is what I want
Just use the String
method : http://golang.org/pkg/math/big/#Int.String
bigint := big.NewInt(123)
bigstr := bigint.String()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With