SyntaxFix
Write A Post
Hire A Developer
Questions
package main import "fmt" func main() { var x float64 = 5.7 var y int = int(x) fmt.Println(y) // outputs "5" }