Sign in
android
/
platform
/
prebuilts
/
go
/
windows-x86
/
refs/heads/studio-1.4-release
/
.
/
misc
/
tour
/
content
/
basics
/
type-conversions.go
blob: 84b71b24c5728059665520cdfbdb3feeb49e2b25 [
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 int = int(f)
fmt.Println(x, y, z)
}