Sign in
go
/
website
/
64c171f80fae41aad6aefcd1818ad8952418b713
/
.
/
_content
/
tour
/
basics
/
type-conversions.go
blob: 0ce35376730db5132aad3e206cd3895c2f19cf2b [
file
] [
log
] [
blame
]
// +build OMIT
package main
import (
"fmt"
"math"
)
func main() {
var x, y int = 3, 4
var f float64 = math.Sqrt(float64(x*x + y*y))
var z uint = uint(f)
fmt.Println(x, y, z)
}