How can I use the type of big to output the decimal digits with over the range of uint 64


Like the code given lilustrates the digit “a”, but doen’t directly show “limit” , how can I directly show very big digit over unit64

Call any of the formatting methods that the type has, or pass a pointer to it to println to get the default string formatting. Your a and b are already pointers (big.NewInt) but limit is not.

fmt.Println(&limit)

Tanks for your help! And I have the other question: How can I initialy set a random value over uint 64 through adopting big type