Sign in
go
/
website
/
850ae8c1f70576aa9dc40540dbb36e90dcfbc9ae
/
.
/
_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)
}