// Ref: https://golangcode.com/uint64-to-string/
package main
import (
"fmt"
"strconv"
)
func main() {
// Create our number
var myNumber uint64
myNumber = 18446744073709551615
// Format to a string by passing the number and it's base.
str := strconv.FormatUint(myNumber, 10)
// Print as string
// Will output: 'The number is: 18446744073709551615'
fmt.Println("The number is: " + str)
}
More than 3 years have passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme